Re:It never makes sense to use foldl on lists in Haskell (2019)
by cryptonector on Saturday March 21, 2020 @02:47PM
(#22648854)
In Haskell lazy values are just thunks. So a Lisp-style cons can have a tail that's just a thunk, and when you need to coerce it to a non-thunk value, it just happens and presto, you have the next cons. That's a list! A lazy list.
[ Parent
| on HN ]
There are no comments on this comment yet.