2 ms·
Arrows has been historically used for both functions and matches in languages that support both. E.g. Ocaml: let rec fib = fun x -> match x with
by int_19h 9y ago
Arrows has been historically used for both functions and matches in languages that support both. E.g. Ocaml:
let rec fib = fun x ->
match x with
| 0 -> 1
| 1 -> 1
| _ -> fib (x - 1) + fib (x - 2)