package travesty

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

Module Extend1_left.Fix_leftSource

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

Parameters

module Left : Base.T

Signature

include S0 with type t := Left.t S.t with type left := Left.t
include Types_intf.Bi0 with type t := Left.t S.t with type left := Left.t
Sourcetype right

Fixed type of right elements.

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

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

Sourceval map_right : Left.t S.t -> f:(right -> right) -> Left.t S.t

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

Sourcemodule Map_left : Mappable.S0 with type t := Left.t S.t

Permits mapping over the left type.

Sourcemodule Map_right : Mappable.S0 with type t := Left.t S.t

Permits mapping over the right type.

OCaml

Innovation. Community. Security.