The OpenD Programming Language

minmaxIndex.minmaxIndex

template minmaxIndex(alias pred = "a < b")
static if(__traits(isSame, naryFun!pred, pred))
size_t[N][2]
minmaxIndex
(
Iterator
size_t N
SliceKind kind
)
(
Slice!(Iterator, N, kind) slice
)

Parameters

slice Slice!(Iterator, N, kind)

ndslice.

Return Value

Type: size_t[N][2]

Subslice with minimal (maximal) first element.

Meta