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>