partitionAt.partitionAt

  1. void partitionAt(Slice!(Iterator, N, kind) slice, size_t nth)
    template partitionAt(alias less = "a < b")
    @trusted nothrow @nogc
    @optmath
    static if(__traits(isSame, naryFun!less, less))
    void
    partitionAt
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    ,
    size_t nth
    )
  2. alias partitionAt = .partitionAt!(naryFun!less)

Parameters

slice Slice!(Iterator, N, kind)

n-dimensional slice

nth size_t

The index of the element that should be in sorted position after the function is finished.

Meta