Eager.T
include Monads.Std.Monad.Collection.Basic
type 'a t
x t a container that hold values of type x
x t
x
val return : 'a -> 'a t
return x creates a singleton container holding x
return x
include Monads.Std.Monad.Plus.S with type 'a t := 'a t
val zero : unit -> 'a t
zero () constructs a zero element
zero ()
val plus : 'a t -> 'a t -> 'a t
plus x y an associative operation.
plus x y
val fold : 'a t -> init:'s -> f:('s -> 'a -> 's) -> 's
fold implementation