Preface_stdlib.Fun
Implementation for function 'a -> 'b
.
module Profunctor : Preface_specs.PROFUNCTOR with type ('a, 'b) t = ('a, 'b) t
module Strong : Preface_specs.STRONG with type ('a, 'b) t = ('a, 'b) t
module Choice : Preface_specs.CHOICE with type ('a, 'b) t = ('a, 'b) t
module Closed : Preface_specs.CLOSED with type ('a, 'b) t = ('a, 'b) t
module Semigroupoid :
Preface_specs.SEMIGROUPOID with type ('a, 'b) t = ('a, 'b) t
module Category : Preface_specs.CATEGORY with type ('a, 'b) t = ('a, 'b) t
module Arrow : Preface_specs.ARROW with type ('a, 'b) t = ('a, 'b) t
module Arrow_choice :
Preface_specs.ARROW_CHOICE with type ('a, 'b) t = ('a, 'b) t
module Arrow_apply :
Preface_specs.ARROW_APPLY with type ('a, 'b) t = ('a, 'b) t
Additional functions to facilitate practical work with Fun.t
.
(compose_left_to_right f g) x
is g (f x)
.
(compose_right_to_left f g) x
is f (g x)
. It is the mathematical composition.
Produce a function that returns its first argument. const a b
returns always a
.
module Infix : sig ... end
(f %> g) x
is g (f x)
. Alias for Preface_stdlib.Fun.compose_left_to_right
(f <% g) x
is f (g x)
. Alias for Preface_stdlib.Fun.compose_right_to_left
(f <% g) x
is f (g x)
. Alias for Preface_stdlib.Fun.compose_right_to_left