News for hackers. Stuff that matters.
Re:It never makes sense to use foldl on lists in Haskell (2019) by sullyj3 on Friday March 20, 2020 @10:54PM (#22643923)
Due to GHC's fusion, they're often not even created. They're used more like control flow constructs than arrays.
Re:It never makes sense to use foldl on lists in Haskell (2019) by hope-striker on Sunday March 22, 2020 @06:32AM (#22654001)
Right, I mostly end up using Haskell's lists as an extremely ergonomic counterpart to iterators / generators in languages like Python and Rust.