package links

  1. Overview
  2. Docs

Functional combinators

val (-<-) : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b

"compose" operators (arrow indicates direction of composition)

val (->-) : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c
val curry : (('a * 'b) -> 'c) -> 'a -> 'b -> 'c
val uncurry : ('a -> 'b -> 'c) -> ('a * 'b) -> 'c
val identity : 'a -> 'a
val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c
val const : 'a -> 'b -> 'a
val cross : ('a -> 'b) -> ('c -> 'd) -> ('a * 'c) -> 'b * 'd
OCaml

Innovation. Community. Security.