mir-core ~master (2021-10-18T16:44:50Z)
Dub
Repo
length
mir
primitives
pragma(
inline
, true)
@
optmath
size_t
length
(
size_t
d
: 0
T
)
(
in
T
[]
array
)
if
(
d
== 0
)
Examples
assert
([
1
,
2
].
length
!
0
==
2
);
assert
([
1
,
2
].
elementCount
==
2
);
Meta
Source
See Implementation
mir
primitives
aliases
elementsCount
functions
anyEmpty
anyEmptyShape
back
elementCount
empty
front
length
popBack
popBackExactly
popBackN
popFront
popFrontExactly
popFrontN
save
shape
walkLength
templates
DeepElementType
DimensionCount
ElementType
isInfinite
variables
hasLength
hasShape
isInputRange
isOutputRange