Haskell Values Flashcards
1
Q
drop 5 $ [1…]
A
[6, 7, 8, …., infinity]
- Fail to terminate
2
Q
foldr (:) [] [1,2,3,4]
A
[1,2,3,4]
3
Q
foldl (:) [] [1,2,3,4]
A
Error
drop 5 $ [1…]
[6, 7, 8, …., infinity]
foldr (:) [] [1,2,3,4]
[1,2,3,4]
foldl (:) [] [1,2,3,4]
Error