Home
Steps
Try
Home
Steps
Try
Steps
Steps to learning Reason OCaml
Variants
Variants are case constants for switch statements. A Variant is a set of mutually exclusive cases to choose from. The expression creates a…
Read more…
Myer Nore
25 February, 2018 - 5 min read
Pattern Matching Intro
Pattern Matching / Switch Consider the factorial function from the last post : While an if/else or ternary expression works just fine for…
Read more…
Myer Nore
03 December, 2017 - 4 min read
1
2
Tags
booleans (1)
conditionals (1)
floats (1)
fold-left (1)
functions (1)
functors (2)
hashtables (1)
j-string-interpolation (1)
json (1)
lists (1)
maps (1)
meta (1)
modules (1)
objects (1)
operator-precedence (1)
pattern-matching (1)
records (3)
rtop (2)
variants (2)