Haskell Values Flashcards

1
Q

drop 5 $ [1…]

A

[6, 7, 8, …., infinity]

  • Fail to terminate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

foldr (:) [] [1,2,3,4]

A

[1,2,3,4]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

foldl (:) [] [1,2,3,4]

A

Error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly