package travesty

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

Fixes the right type of this container to Right.t.

Parameters

module Right : Base.T

Signature

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

Fixed type of left elements.

include Bi_mappable.Generic with type ('l, 'r) t := (Left.t, Right.t) t and type 'l left := left and type 'r right := Right.t
include Types_intf.Bi_generic with type ('l, 'r) t := (Left.t, Right.t) t with type 'l left := left with type 'r right := Right.t
val bi_map : (Left.t, Right.t) t -> left:(left -> left) -> right:(Right.t -> Right.t) -> (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 and type right := Right.t
include Types_intf.Bi0 with type t := (Left.t, Right.t) t with type left := left with type right := Right.t
include Bi_mappable.Generic_extensions with type ('l, 'r) t := (Left.t, Right.t) t and type 'l left := left and type 'r right := Right.t
include Types_intf.Bi_generic with type ('l, 'r) t := (Left.t, Right.t) t with type 'l left := left with type 'r right := Right.t
val map_left : (Left.t, Right.t) t -> f:(left -> left) -> (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.t -> Right.t) -> (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.