aoc2023/lib/fn.ml
Paul-Henri Froidmont de6ee1b2df
Initial commit
2023-12-01 10:17:20 +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)