filter.filter

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

Parameters

r Range

An input range of elements to filter.

Return Value

Type: Filter!(naryFun!pred, Range)

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

Meta