3 ms·
OCaml supports this: # let f ~fst ~snd = fst + snd;; val f : fst:int -> snd:int -> int = <fun> # f ~snd:4;; - : fst:int -> int = <fun>
by andrenth 6y ago
OCaml supports this:
# let f ~fst ~snd = fst + snd;;
val f : fst:int -> snd:int -> int = <fun>
# f ~snd:4;;
- : fst:int -> int = <fun>