aoc2023/ocaml/lib/fn.ml
Paul-Henri Froidmont 13a8e74189
Setup Scala
2023-12-04 08:02:51 +01:00

5 lines
191 B
OCaml

(** [f << g] composes [f] with [g] right-to-left -- i.e. [f (g x)] *)
let (<<) f g x = f (g x)
(** [f << g] composes [f] with [g] left-to-right -- i.e. [g (f x)] *)
let (>>) f g x = g (f x)