The OpenD Programming Language

find.find

template find(alias pred)
static if(__traits(isSame, naryFun!pred, pred))
Select!(DimensionCount!(Slices[0]) > 1, size_t[DimensionCount!(Slices[0])], size_t)
find
(
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 backward index such that the predicate is true. Backward index equals zeros, if the predicate evaluates false for all indices. Constraints: All slices must have the same shape.

Meta