The OpenD Programming Language

minmaxPos.minmaxPos

template minmaxPos(alias pred = "a < b")
static if(__traits(isSame, naryFun!pred, pred))
Slice!(Iterator, N,
kind == Contiguous &&
N > 1
? Canonical : kind)[2]
minmaxPos
(
Iterator
size_t N
SliceKind kind
)
(
Slice!(Iterator, N, kind) slice
)

Parameters

slice Slice!(Iterator, N, kind)

ndslice.

Return Value

Type: Slice!(Iterator, N,
kind == Contiguous &&
N > 1
? Canonical : kind)[2]

2 subslices with minimal and maximal first elements.

Meta