package travesty

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Fixes the left type of this container to Left.t.

Parameters

module Left : Base.T

Signature

include Bi_mappable.S0 with type t := (Left.t, Right.t) t with type left := Left.t
include Types_intf.Bi0 with type t := (Left.t, Right.t) t with type left := Left.t
type right

Fixed type of right elements.

include Bi_mappable.Generic with type ('l, 'r) t := (Left.t, Right.t) t and type 'l left := Left.t and type 'r right := right
include Types_intf.Bi_generic with type ('l, 'r) t := (Left.t, Right.t) t with type 'l left := Left.t with type 'r right := right
val bi_map : (Left.t, Right.t) t -> left:(Left.t -> Left.t) -> right:(right -> right) -> (Left.t, Right.t) t

bi_map c ~left ~right maps left over every 'l1 left, and right over every 'r1 right, in c.

include Bi_mappable.Extensions0 with type t := (Left.t, Right.t) t and type left := Left.t and type right := right
include Types_intf.Bi0 with type t := (Left.t, Right.t) t with type left := Left.t with type right := right
include Bi_mappable.Generic_extensions with type ('l, 'r) t := (Left.t, Right.t) t and type 'l left := Left.t and type 'r right := right
include Types_intf.Bi_generic with type ('l, 'r) t := (Left.t, Right.t) t with type 'l left := Left.t with type 'r right := right
val map_left : (Left.t, Right.t) t -> f:(Left.t -> Left.t) -> (Left.t, Right.t) t

map_left c ~f maps f over the left type of c only.

val map_right : (Left.t, Right.t) t -> f:(right -> right) -> (Left.t, Right.t) t

map_right c ~f maps f over the right type of c only.

module Map_left : Mappable.S0 with type t := (Left.t, Right.t) t

Permits mapping over the left type.

module Map_right : Mappable.S0 with type t := (Left.t, Right.t) t

Permits mapping over the right type.

OCaml

Innovation. Community. Security.