package stdune

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Same as Product but for 3 commutative monoids.

Parameters

module A : Basic
module B : Basic
module C : Basic

Signature

type t = A.t * B.t * C.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
type combine_is_commutative = unit
OCaml

Innovation. Community. Security.