Checks if a set is closed under an operation.

  • Type Parameters

    • T

    Parameters

    • set: string | ChalkboardSet<T>

      The set

    • operation: (a: T, b: T) => T | "addition" | "multiplication"

      The operation

    Returns boolean