Module Accessor.Nonempty_getter
type +'a t
t
is an appendable type for definingnonempty_getter
accessors. See the documentation ofAccessor.nonempty_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 append : 'a t -> 'a t -> 'a t
append a b
accesses everythinga
accesses, then accesses everythingb
accesses.
module O = Nonempty_getter.O
val map_reduce : 'a t -> combine:('r -> 'r -> 'r) -> f:('a -> 'r) -> 'r
val of_nonempty : (_, 'a, _) Nonempty.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