Functionality for associative combination.
This module exposes utilities for working with semigroups. It is recommended to import them as they are named:
import { Semigroup, cmb } from "@neotype/prelude/cmb.js"; Copy
import { Semigroup, cmb } from "@neotype/prelude/cmb.js";
Semigroup<T>
Semigroup:namespace
Generated using TypeDoc
Functionality for associative combination.
Remarks
Importing from this module
This module exposes utilities for working with semigroups. It is recommended to import them as they are named:
Implementing semigroups
Semigroup<T>
interface provides a contract for implementing semigroups. See the documentation for implementation patterns.Semigroup:namespace
companion namespace provides the unique symbol required to implement its associated interface.