mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
254 B
D
16 lines
254 B
D
module imports.std11069array;
|
|
|
|
@property bool empty(T)(in T[] a) @safe pure nothrow
|
|
{
|
|
return !a.length;
|
|
}
|
|
|
|
void popFront(T)(ref T[] a) @safe pure nothrow
|
|
{
|
|
a = a[1 .. $];
|
|
}
|
|
|
|
@property ref T front(T)(T[] a) @safe pure nothrow
|
|
{
|
|
return a[0];
|
|
}
|