Bi_traversable_types.Generic
Generic
is a generic interface for bi-mappable types, used to build S0
(arity-0) and S1
(arity-1).
include Generic_types.Bi_generic
We can do non-monadic bi-mapping operations.
include Bi_mappable_types.Generic
with type ('l, 'r) t := ('l, 'r) t
and type 'l left := 'l left
and type 'r right := 'r right
map_left c ~f
maps f
over the left type of c
only.
module On
(M : Base.Applicative.S) :
Generic_on_applicative
with type ('l, 'r) t := ('l, 'r) t
and type 'l left := 'l left
and type 'r right := 'r right
and module M := M
On
implements bi-traversal operators for a given applicative functor M
.