Function filter$

  • Keep values which pass a test!

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array (updated!)

    • ft: TestFunction<T>

      test function (v, i, x)

    Returns T[]

    x = [v₀, v₁, ...] | ft(vᵢ) = true; vᵢ ∈ x

Generated using TypeDoc