W3cubDocs

/D

dmd.root.array

Compiler implementation of the D programming language.

Authors:
Walter Bright
License:
Boost License 1.0
Source
root/array.d
Documentation
https://dlang.org/phobos/dmd_root_array.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/src/dmd/root/array.d
pure nothrow @nogc @property inout(T)[] peekSlice(T)(inout(Array!T)* array);

Exposes the given root Array as a standard D array.

Parameters:
inout(Array!T)* array the array to expose.
Returns:
The given array exposed to a standard D array.
pure nothrow void split(T)(ref Array!T array, size_t index, size_t length);

Splits the array at index and expands it to make room for length elements by shifting everything past index to the right.

Parameters:
Array!T array the array to split.
size_t index the index to split the array from.
size_t length the number of elements to make room for starting at index.
pure nothrow @nogc @safe T[] reverse(T)(T[] a);

Reverse an array in-place.

Parameters:
T[] a array
Returns:
reversed a[]

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_root_array.html