Module Accessor__.Many_getter
type +'a t
t
is an appendable type for definingmany_getter
accessors. See the documentation ofAccessor.many_getter
for more information.
include Base.Monad.S with type 'a t := 'a t
include Base__.Monad_intf.S_without_syntax with type 'a t := 'a t
module Monad_infix : Base__.Monad_intf.Infix with type 'a t := 'a t
val return : 'a -> 'a t
return v
returns the (trivial) computation that returns v.
val access : 'a -> 'a t
access a
"accesses"a
.
val empty : _ t
Don't access anything.
val append : 'a t -> 'a t -> 'a t
append a b
accesses everythinga
accesses, then accesses everythingb
accesses.
module O : sig ... end
val map_reduce : 'a t -> empty:'r -> combine:('r -> 'r -> 'r) -> f:('a -> 'r) -> 'r
val of_many : (_, 'a, _) Accessor.Many.t -> 'a t
val of_nonempty : (_, 'a, _) Accessor.Nonempty.t -> 'a t
val of_nonempty_getter : 'a Accessor.Nonempty_getter.t -> 'a t