I try to run this in GHCi:
take 100 [ (a,b,c) | a <- [1..], b <- [1..], c <- [1..], a^2 + b^2 == c^2, a<b ]
I would expect it to be calculated because of the lazyness of take, but that's not the case. Why?
I try to run this in GHCi:
take 100 [ (a,b,c) | a <- [1..], b <- [1..], c <- [1..], a^2 + b^2 == c^2, a<b ]
I would expect it to be calculated because of the lazyness of take, but that's not the case. Why?