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
enfranchisedmind.com/blog/archive/2007/01/01/177
Мітки: функціональне програмування, ocaml, lazy
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