Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.


Compiler implementation of the D programming language.

Source root/array.d

@property T[] asDArray(T)(ref Array!T array);
Exposes the given root Array as a standard D array.
Array!T array the array to expose.
The given array exposed to a standard D array.
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.
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.