The OpenD Programming Language

rcfilter.rcfilter

  1. auto rcfilter(Range r)
  2. auto rcfilter(Slice!(Iterator, N, kind) slice)
    template rcfilter(alias pred = "a", alias map = "a")
    static if(__traits(isSame, naryFun!pred, pred) && __traits(isSame, naryFun!map, map))
    rcfilter
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    )
    if (
    N > 1
    )

Return Value

Type: auto

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

Meta