lsp.stdune
Monoid.Make
This functor extends the basic definition of a monoid by adding a convenient operator synonym ( @ ) = combine, as well as derived functions reduce and map_reduce.
( @ ) = combine
reduce
map_reduce
lsp
lsp.fiber
lsp.fiber_unix
lsp.filesystem_stubs
module M : Basic
type t = M.t
val empty : t
Must be the identity of combine:
combine
val combine : t -> t -> t
Must be associative:
module O : sig ... end
val reduce : t list -> t
val map_reduce : f:('a -> t) -> 'a list -> t