mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
transitionIndex.transitionIndex
mir
ndslice
sorting
transitionIndex
size_t
transitionIndex
(Slice!(Iterator, 1, kind) slice, V v)
size_t
transitionIndex
(T[] ar, V v)
template
transitionIndex
(alias test = "a < b")
@
optmath
static if
(
__traits(isSame, naryFun!test, test)
)
@
optmath
size_t
transitionIndex
(
T
V
)
(
scope
T
[]
ar
,
auto
ref
scope
const
V
v
)
alias
transitionIndex
=
.
transitionIndex
!(
naryFun
!
test
)
Parameters
v
V
value to test with. It is passed to second argument.
Meta
Source
See Implementation
mir
ndslice
sorting
transitionIndex
functions
transitionIndex