May 5, 2013 · Photo

OCaml Forge: ocaml lazy lists: Project Home


The language OCaml, like all dialects of ML, also offers a convenient mechanism to explore and de-structure values of data-types by pattern matching, also known as case Nonetheless, I really wanted something like Ocaml’s / Haskell’s pattern matching; it makes some code wonderfully concise. Accordingly, I hacked something up, based on
OCaml Forge: ocaml lazy lists: Project Home

OCaml – Progopedia – Encyclopedia of Programming Languages


There are two forms of conditionals in OCaml, if/then expressions and pattern matching. If/Then. The if then construct is fairly straight-forward, and similar to similar Extensibility of algebraic types: always closed (Standard ML, Haskell) vs optionally closed (OCaml). Pattern matching: linear (Standard ML, OCaml, Haskell) vs
OCaml - Progopedia - Encyclopedia of Programming Languages

Written by