The OpenD Programming Language

count.count

template count(alias fun)
static if(__traits(isSame, naryFun!fun, fun))
size_t
count
(
Slices...
)
(
Slices slices
)
if (
Slices.length
)

Parameters

slices Slices

One or more slices, ranges, and arrays.

Return Value

Type: size_t

The number elements according to the fun.

Constraints: All slices must have the same shape.

Meta