o1-labs / ocamlbyexample

Learn Ocaml by reading code examples
https://o1-labs.github.io/ocamlbyexample/
69 stars 4 forks source link

chapter: lazy #12

Open mimoo opened 2 years ago

mimoo commented 2 years ago
utop # let a = lazy "prout";;
val a : string lazy_t = lazy "prout"

utop # Lazy.force a;;
- : string = "prout"