4 ms·
Using List.map and Option.map is more verbose and less general, but it's still most of the way there. OCaml still has currying, algebraic data types, "implicit
by giornogiovanna 7y ago
Using List.map and Option.map is more verbose and less general, but it's still most of the way there.
OCaml still has currying, algebraic data types, "implicit" returns, tail call optimization, etc., and it encourages recursion instead of loops wherever applicable.