package lsp

  1. Overview
  2. Docs

doc/lsp.stdune/Stdune/Monoid/List/index.html

Module Monoid.ListSource

The list monoid with empty = [] and combine = ( @ ).

Parameters

module M : sig ... end

Signature

Sourcetype t = M.t list
Sourceval empty : t

Must be the identity of combine:

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

Must be associative:

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

Innovation. Community. Security.