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