The OpenD Programming Language

uniq.uniq

  1. Uniq!(naryFun!pred, Range) uniq(Range r)
    template uniq(alias pred = "a == b")
    static if(__traits(isSame, naryFun!pred, pred))
    Uniq!(naryFun!pred, Range)
    uniq
    (
    Range
    )
    (
    Range r
    )
    if (
    isInputRange!Range &&
    !isSlice!Range
    )
  2. auto uniq(Slice!(Iterator, N, kind) slice)

Parameters

r Range

An input range of elements to filter.

Return Value

Type: Uniq!(naryFun!pred, Range)

An input range of consecutively unique elements in the original range. If r is also a forward range or bidirectional range, the returned range will be likewise.

Meta