rcfilter.rcfilter

  1. auto rcfilter(Range r)
    template rcfilter(alias pred = "a", alias map = "a")
    @optmath
    static if(__traits(isSame, naryFun!pred, pred) && __traits(isSame, naryFun!map, map))
    rcfilter
    (
    Range
    )
    (
    Range r
    )
    if (
    isIterable!Range &&
    (
    !isSlice!Range ||
    DimensionCount!Range == 1
    )
    )
  2. auto rcfilter(Slice!(Iterator, N, kind) slice)
  3. alias rcfilter = .rcfilter!(naryFun!pred, naryFun!map)

Parameters

r Range

An input range of elements to filter.

Return Value

Type: auto

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

Meta