The OpenD Programming Language

uniq.uniq

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

Return Value

Type: auto

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