Function count

  • Count values which satisfy a test.

    Type Parameters

    • T

    Parameters

    • x: Set<T>

      a set

    • ft: TestFunction<T>

      test function (v, v, x)

    Returns number

    Σtᵢ | tᵢ = 1 if ft(vᵢ) else 0; vᵢ ∈ x

Generated using TypeDoc