Commit 4175c247 by POTTIER Francois

Pointer to the blog post on iterators.

parent f9f35acd
......@@ -1348,6 +1348,15 @@ a matter of overriding \tyconvisitor{'expr} so as to deconstruct
one kind of expression and reconstruct the other kind.
% ------------------------------------------------------------------------------
\subsection{From visitors to iterators}
\label{sec:iterators}
It is possible to use a visitor to implement an iterator, that is, an object
that traverses a container data structure and produces its elements on demand.
The story is told in a blog post~\cite{iterators}.
% ------------------------------------------------------------------------------
% ------------------------------------------------------------------------------
\section{Little-known aspects of OCaml objects}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment