I’m very happy about the release of OCaml 4.07.0.
One thing that’s bothering me is the header for
Seq: “Functional Iterators”. To me an iterator is an object or function that will iterate, but as the next line of the docs says “The type 'a t is a delayed list”.
That is, to me
Seq.t is a sequence, not an iterator, as I understand the concept. The Iterator Wikipedia page says that "Internal iterators are higher order functions (often taking anonymous functions) such as map, reduce etc., implementing the traversal across a container, applying the given function to every element in turn. "
Maybe there’s a way of conceptualizing
Seq that I’m not seeing.