Ocaml Lazy Lists- An Introduction
In Ocaml, the keyword lazy is used before an expression to capture the expression as a lazy thunk. The function Lazy.force can be used to then force the lazy thunk and return the value. An example of this makes things more clear. One advantage Ocaml has
: 1 | lazy - - ocaml