uniq.uniq

  1. Uniq!(naryFun!pred, Range) uniq(Range r)
    template uniq(alias pred = "a == b")
    @optmath
    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)
  3. alias uniq = .uniq!(naryFun!pred)

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