The OpenD Programming Language

findIndex.findIndex

template findIndex(alias pred)
static if(__traits(isSame, naryFun!pred, pred))
Select!(DimensionCount!(Slices[0]) > 1, size_t[DimensionCount!(Slices[0])], size_t)
findIndex
(
Slices...
)
(
Slices slices
)
if (
Slices.length
)

Parameters

slices Slices

One or more slices.

Return Value

Type: Select!(DimensionCount!(Slices[0]) > 1, size_t[DimensionCount!(Slices[0])], size_t)

Multidimensional index such that the predicate is true. Index equals size_t.max, if the predicate evaluates false for all indices. Constraints: All slices must have the same shape.

Meta