Re:It never makes sense to use foldl on lists in Haskell (2019)
by Retric on Saturday March 21, 2020 @05:29AM
(#22645475)
Linked lists are O(N) random insertion as you need to traverse the tree to locate the correct node. The only way that they are always O(1) are a degenerate case better suited for another data structure. Aka if you want a queue then use a ring buffer not a linked list.
[ Parent
| on HN ]
There are no comments on this comment yet.