Convenience function that returns an Appender instance, optionally initialized with array.
Convenience function that returns a RefAppender instance initialized with arrayPtr. Don't use null for the array pointer, use the other version of appender instead.
Allocates an array and initializes it with copies of the elements of range r.
Convert a narrow autodecoding string to an array type that fully supports random access. This is handled as a special case and always returns an array of dchar
Returns a newly allocated associative array from a range of key/value tuples or from a range of keys and a range of values.
Construct a range iterating over an associative array by key/value tuples.
Inserts stuff (which must be an input range or any number of implicitly convertible items) in array at position pos.
Eagerly concatenates all of the ranges in ror together (with the GC) into one array using sep as the separator if present.
Returns a new array of type T allocated on the garbage collected heap.
Returns the overlapping portion, if any, of two arrays. Unlike equal, overlap only compares the pointers and lengths in the ranges, not the values referred by them. If r1 and r2 have an overlapping slice, returns that slice. Otherwise, returns the null slice.
Replace occurrences of from with to in subject in a new array.
Replaces elements from array with indices ranging from from (inclusive) to to (exclusive) with the range stuff.
Replaces the first occurrence of from with to in subject.
Replaces elements from array with indices ranging from from (inclusive) to to (exclusive) with the range stuff. Expands or shrinks the array as needed.
Replace occurrences of from with to in subject and output the result into sink.
Replaces the last occurrence of from with to in subject.
Creates a new array such that the items in slice are replaced with the items in replacement. slice and replacement do not need to be the same length. The result will grow or shrink based on the items given.
Returns whether the fronts of lhs and rhs both refer to the same place in memory, making one of the arrays a slice of the other which starts at index 0.
Returns whether the backs of lhs and rhs both refer to the same place in memory, making one of the arrays a slice of the other which end at index $.
Eagerly splits range into an array, using sep as the delimiter.
Constructs a static array from a. The type of elements can be specified implicitly so that [1, 2].staticArray results in int[2], or explicitly, e.g. [1, 2].staticArray!float returns float[2]. When a is a range whose length is not known at compile time, the number of elements must be given as template argument (e.g. myrange.staticArray!2). Size and type can be combined, if the source range elements are implicitly convertible to the requested element type (eg: 2.iota.staticArray!(long[2])). When the range a is known at compile time, it can also be specified as a template argument to avoid having to specify the number of elements (e.g.: staticArray!(2.iota) or staticArray!(double, 2.iota)).
Returns a new array of type T allocated on the garbage collected heap without initializing its elements. This can be a useful optimization if every element will be immediately initialized. T may be a multidimensional array. In this case sizes may be specified for any number of dimensions from 0 to the number in T.
A version of Appender that can update an array in-place. It forwards all calls to an underlying appender implementation. Any calls made to the appender also update the pointer to the original array passed in.
Functions and types that manipulate built-in arrays and associative arrays.
This module provides all kinds of functions to create, manipulate or convert arrays: