Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
"lazy" example in the tutorial part of the manual #7547
Original bug ID: 7547
Lazy expressions (and patterns) are only described in the language part of the manual and the "Lazy" module documentation. Since the existence of this feature is hard to infer from the rest of the language, it would be nice to have at least one short example of lazy expression in the tutorial part of the manual and a link to the module documenation. One possible good emplacement for this example might be a new "Lazy expressions" section right the after the "Exceptions" section (http://caml.inria.fr/pub/docs/manual-ocaml/coreexamples.html#sec13) in the core language chapter.