Function _where

  • creates a new sequence with every item of the source sequence for which the predicate function returns true

    Alias

    of _filter

    Returns

    a new (possibly shorter) sequence with some items filtered away

    Type Parameters

    • T

    • S

    Parameters

    • src: Iterable<T>

      source sequence

    • pred: TypeGuardPredicate<T, S>

      a function that returns true to signal inclusion, false to exclude

    Returns Iterable<S>

  • creates a new sequence with every item of the source sequence for which the predicate function returns true

    Alias

    of _filter

    Returns

    a new (possibly shorter) sequence with some items filtered away

    Type Parameters

    • T

    Parameters

    • src: Iterable<T>

      source sequence

    • pred: IndexedPredicate<T>

      a function that returns true to signal inclusion, false to exclude

    Returns Iterable<T>

Generated using TypeDoc