filter.filter

  1. Filter!(naryFun!pred, Range) filter(Range r)
  2. auto filter(Slice!(Iterator, N, kind) slice)
    template filter(alias pred = "a")
    @optmath
    static if(__traits(isSame, naryFun!pred, pred))
    filter
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    )
  3. alias filter = .filter!(naryFun!pred)

Return Value

Type: auto

A new range containing only elements x in range for which predicate(x) returns true.

Meta