3 ms·
Haskell lists should be thought of like (pure immutable) iterators. They have the same cache-misses and possibly-infinite properties. One could argue that the
by harpocrates 10y ago
Haskell lists should be thought of like (pure immutable) iterators. They have the same cache-misses and possibly-infinite properties.
One could argue that the mistake Haskell made was to call them "lists" instead of "streams", and to make it so easy to make list literals.