package lsp

  1. Overview
  2. Docs

doc/lsp.stdune/Stdune/Monoid/module-type-S/index.html

Module type Monoid.SSource

type t
val empty : t

Must be the identity of combine:

  • combine empty t = t
  • combine t empty = t
val combine : t -> t -> t

Must be associative:

  • combine a (combine b c) = combine (combine a b) c
module O : sig ... end
val reduce : t list -> t
val map_reduce : f:('a -> t) -> 'a list -> t
OCaml

Innovation. Community. Security.