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 = Many_getter.O
val map_reduce : 'a t -> empty:'r -> combine:('r -> 'r -> 'r) -> f:('a -> 'r) -> 'r
val of_many : (_, 'a, _) Many.t -> 'a t
val of_nonempty : (_, 'a, _) Nonempty.t -> 'a t
val of_nonempty_getter : 'a Nonempty_getter.t -> 'a t
module Make_access : functor (T : sig ... end) -> sig ... end
module Make_access3 : functor (T : sig ... end) -> sig ... end
module Make_access4 : functor (T : sig ... end) -> sig ... end