walkLength

walkLength
(
Range
)
(
Range range
)
if ()

Return Value

Type: auto

the length of the given range.

Examples

enum a = [1, 2, 3, 4].staticArray;
static assert(a[].walkLength == 4);

enum c = a[].filter!(e => e > 2);
static assert(c.walkLength == 2);

Meta