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 S0 with type t := Right.t S.t with type right := Right.t
include Types_intf.Bi0 with type t := Right.t S.t with type right := Right.t
type left

Fixed type of left elements.

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

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

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

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

val map_right : Right.t S.t -> f:(Right.t -> Right.t) -> Right.t S.t

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

module Map_left : Mappable.S0 with type t := Right.t S.t

Permits mapping over the left type.

module Map_right : Mappable.S0 with type t := Right.t S.t

Permits mapping over the right type.

OCaml

Innovation. Community. Security.