The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
shape
mir
primitives
@
property
@
optmath
auto
shape
(
Range
)
(
scope
const
auto
ref
Range
range
)
if
(
hasLength
!
Range
||
hasShape
!
Range
)
Examples
static
assert
([
2
,
2
,
2
].
shape
== [
3
]);
Meta
Source
See Implementation
mir
primitives
functions
anyEmpty
back
elementCount
empty
front
length
popBack
popBackExactly
popBackN
popFront
popFrontExactly
popFrontN
save
shape
walkLength
templates
DeepElementType
DimensionCount
ElementType
isInfinite
variables
hasLength
hasShape
isInputRange
isOutputRange