The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Array.length
std
container
array
Array
Returns the number of elements in the array.
Complexity:
O
(1)
.
size_t
length
[@property getter]
struct
Array
(T)
@
property
const
size_t
length
(
)
if
(
is
(immutable
T
== immutable
bool
)
)
size_t
length
[@property setter]
Meta
Source
See Implementation
std
container
array
Array
aliases
insert
linearInsert
stableInsert
stableInsertAfter
stableInsertBack
stableInsertBefore
stableLinearInsert
stableRemoveAny
stableRemoveBack
stableReplace
constructors
this
functions
clear
insertAfter
insertBack
insertBefore
linearRemove
moveAt
opBinary
opIndex
opIndexAssign
opIndexOpAssign
opOpAssign
opSlice
removeAny
removeBack
replace
reserve
properties
back
capacity
dup
empty
front
length
structs
Range
Returns the number of elements in the array.
Complexity: O(1).