mir-core — Libmir Archive
← Libmir Archive
Dlang.org
popFront
mir
primitives
pragma(
inline
, true)
@
optmath
void
popFront
(
size_t
dim
= 0
T
)
(
scope
ref
inout
(
T
)[]
ar
)
if
(
!
dim
&&
!
is
(
Unqual
!
T
[] ==
void
[])
)
Examples
auto
ar
= [
3
,
4
];
ar
.
popFront
;
assert
(
ar
== [
4
]);
ar
.
popFront
!
0
;
// Slice-like API
assert
(
ar
== []);
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