Function take

  • Keep first n values only (default order).

    Type Parameters

    • T

    Parameters

    • x: Iterable<T>

      a set

    • n: number = 1

      number of values [1]

    Returns Set<T>

    {v₀, v₁, ...} | vᵢ ∈ x and |{v₀, v₁, ...}| ≤ n

Generated using TypeDoc