The OpenD Programming Language

filter.filter

  1. Filter!(naryFun!pred, Range) filter(Range r)
    template filter(alias pred = "a")
    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)

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