Ticket #3332 (closed bug: invalid)
take n (take m list) returns [] for some m.
Description
See the example below. I think the second output should be [1], too. I also tried ghc and runghc, and the results were the same.
ghci> take 1 (take (10^11) [1..]) [1] it :: [Integer] ghci> take 1 (take (10^12) [1..]) [] it :: [Integer] ghci> take 1 (take (10^13) [1..]) [1] it :: [Integer]
Change History
Note: See
TracTickets for help on using
tickets.
