Defines an endomorphism of an algebraic structure.

  • Type Parameters

    • T

    Parameters

    • struc: ChalkboardStructure<T>

      The algebraic structure which is both the domain and codomain of the morphism

    • mapping: (element: T) => T

      The function that takes an element from the structure and maps it to another element in the same structure

    Returns ChalkboardMorphism<T, T>