package accessor

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

Like Of_monad2, but without return.

Parameters

module A : sig ... end

Signature

val map : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> 'b, Base.unit -> 'at -> 'bt, [> Subtyping.nonempty ]) General.t -> 'at -> f:('a -> ('b, 'e) A.t) -> ('bt, 'e) A.t
val mapi : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> 'b, Base.unit -> 'at -> 'bt, [> Subtyping.nonempty ]) General.t -> 'at -> f:('i Index.t -> 'a -> ('b, 'e) A.t) -> ('bt, 'e) A.t
val iter : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> f:('a -> (Base.unit, 'e) A.t) -> (Base.unit, 'e) A.t
val iteri : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> f:('i Index.t -> 'a -> (Base.unit, 'e) A.t) -> (Base.unit, 'e) A.t
val sum : ?how:[ `Parallel | `Sequential ] -> (module Base.Container.Summable with type t = 'sum) -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> f:('a -> ('sum, 'e) A.t) -> ('sum, 'e) A.t
val sumi : ?how:[ `Parallel | `Sequential ] -> (module Base.Container.Summable with type t = 'sum) -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> f:('i Index.t -> 'a -> ('sum, 'e) A.t) -> ('sum, 'e) A.t
val count : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> f:('a -> (Base.bool, 'e) A.t) -> (Base.int, 'e) A.t
val counti : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> f:('i Index.t -> 'a -> (Base.bool, 'e) A.t) -> (Base.int, 'e) A.t
val all : (Base.unit -> ('a, 'e) A.t -> 'a, Base.unit -> 'at -> 'bt, [> Subtyping.nonempty ]) General.t -> 'at -> ('bt, 'e) A.t
val all_unit : (Base.unit -> (Base.unit, 'e) A.t -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> (Base.unit, 'e) A.t
val map_reduce_nonempty : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> combine:('b -> 'b -> 'b) -> f:('a -> ('b, 'e) A.t) -> ('b, 'e) A.t
val map_reduce_nonemptyi : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Subtyping.nonempty_getter ]) General.t -> 'at -> combine:('b -> 'b -> 'b) -> f:('i Index.t -> 'a -> ('b, 'e) A.t) -> ('b, 'e) A.t