package accessor_base

  1. Overview
  2. Docs
val map : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> 'b, Base.unit -> 'at -> 'bt, [> Accessor.Subtyping.many ]) Accessor.General.t -> 'at -> f:('a -> ('e, 'b) Base.Either.t) -> ('e, 'bt) Base.Either.t
val mapi : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> 'b, Base.unit -> 'at -> 'bt, [> Accessor.Subtyping.many ]) Accessor.General.t -> 'at -> f:('i Accessor.Index.t -> 'a -> ('e, 'b) Base.Either.t) -> ('e, 'bt) Base.Either.t
val all : (Base.unit -> ('e, 'a) Base.Either.t -> 'a, Base.unit -> 'at -> 'bt, [> Accessor.Subtyping.many ]) Accessor.General.t -> 'at -> ('e, 'bt) Base.Either.t
val all_unit : (Base.unit -> ('e, Base.unit) Base.Either.t -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> ('e, Base.unit) Base.Either.t
val iter : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> f:('a -> ('e, Base.unit) Base.Either.t) -> ('e, Base.unit) Base.Either.t
val iteri : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> f:('i Accessor.Index.t -> 'a -> ('e, Base.unit) Base.Either.t) -> ('e, Base.unit) Base.Either.t
val sum : ?how:[ `Parallel | `Sequential ] -> (module Base.Container.Summable with type t = 'sum) -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> f:('a -> ('e, 'sum) Base.Either.t) -> ('e, 'sum) Base.Either.t
val sumi : ?how:[ `Parallel | `Sequential ] -> (module Base.Container.Summable with type t = 'sum) -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> f:('i Accessor.Index.t -> 'a -> ('e, 'sum) Base.Either.t) -> ('e, 'sum) Base.Either.t
val count : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> f:('a -> ('e, Base.bool) Base.Either.t) -> ('e, Base.int) Base.Either.t
val counti : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> f:('i Accessor.Index.t -> 'a -> ('e, Base.bool) Base.Either.t) -> ('e, Base.int) Base.Either.t
val map_reduce : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> empty:'b -> combine:('b -> 'b -> 'b) -> f:('a -> ('e, 'b) Base.Either.t) -> ('e, 'b) Base.Either.t
val map_reducei : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.many_getter ]) Accessor.General.t -> 'at -> empty:'b -> combine:('b -> 'b -> 'b) -> f:('i Accessor.Index.t -> 'a -> ('e, 'b) Base.Either.t) -> ('e, 'b) Base.Either.t
val map_reduce_nonempty : ?how:[ `Parallel | `Sequential ] -> (Base.unit -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.nonempty_getter ]) Accessor.General.t -> 'at -> combine:('b -> 'b -> 'b) -> f:('a -> ('e, 'b) Base.Either.t) -> ('e, 'b) Base.Either.t
val map_reduce_nonemptyi : ?how:[ `Parallel | `Sequential ] -> ('i -> 'a -> _, Base.unit -> 'at -> _, [> Accessor.Subtyping.nonempty_getter ]) Accessor.General.t -> 'at -> combine:('b -> 'b -> 'b) -> f:('i Accessor.Index.t -> 'a -> ('e, 'b) Base.Either.t) -> ('e, 'b) Base.Either.t
OCaml

Innovation. Community. Security.