The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
minmaxIndex.minmaxIndex
mir
algorithm
iteration
minmaxIndex
template
minmaxIndex
(alias pred = "a < b")
@
fmamath
static if
(
__traits(isSame, naryFun!pred, pred)
)
@
fmamath
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
Source
See Implementation
mir
algorithm
iteration
minmaxIndex
functions
minmaxIndex