Chalkboard - v3.0.1
    Preparing search index...

    Function monoid

    • Defines an algebraic structure known as a monoid.

      Type Parameters

      • T

      Parameters

      • set: ChalkboardSet<T>

        The set of the monoid

      • operation: (a: T, b: T) => T

        The operation of the monoid

      • Optionalidentity: T

        The identity element of the monoid (optional if the set is Z, Q, R, C, A, S, M, or GL)

      Returns ChalkboardStructure<T>