mambo.core.Array

Members

Aliases

append
alias append = stdRange.chain
Undocumented in source.
contains
alias contains = algorithm.canFind
Undocumented in source.
count
alias count = algorithm.count
Undocumented in source.
filter
alias filter = algorithm.filter
Undocumented in source.
indexOf
alias indexOf = algorithm.countUntil
Undocumented in source.
join
alias join = stdArray.join
Undocumented in source.
sort
alias sort = algorithm.sort
Undocumented in source.
split
alias split = stdArray.split
Undocumented in source.
startsWith
alias startsWith = algorithm.startsWith
Undocumented in source.
toArray
alias toArray = stdArray.array
Undocumented in source.
unique
alias unique = algorithm.uniq
Undocumented in source.

Functions

any
bool any(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
assumeUnique
immutable(T)[] assumeUnique(const(T)[] array)
Undocumented in source. Be warned that the author may not have intended to support it.
assumeUnique
immutable(T)[] assumeUnique(const(T)[] array)
Undocumented in source. Be warned that the author may not have intended to support it.
assumeUnique
inout(T)[] assumeUnique(T[] source, inout(T)[] destination)
Undocumented in source. Be warned that the author may not have intended to support it.
beginsWith
bool beginsWith(T[] a, T[] b)

Returns true if a begins with b

clear
T[] clear(T[] arr)

Removes all of the elements from this array. The array will be empty after this call returns.

endsWith
bool endsWith(T[] a, T[] b)

Returns true if a ends with b

find
auto find(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
insert
T[] insert(T[] arr, size_t index, RangeOrElement r)

Inserts the given element(s) or range at the given position into the array. Shifts the element currently at that position (if any) and any subsequent elements to the right.

insertInPlace
T[] insertInPlace(T[] arr, size_t index, RangeOrElement r)

Inserts the given element(s) or range, in place, at the given position into the array. Shifts the element currently at that position (if any) and any subsequent elements to the right. * This will modify the given array in place. *

lastIndexOf
U lastIndexOf(T[] arr, T element)

Returns the index of the last occurrence of the specifed element

map
auto map(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
reduce
auto reduce(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
reduce
auto reduce(Range range, Seed seed)
Undocumented in source. Be warned that the author may not have intended to support it.
reduce
auto reduce(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
T[] remove(T[] arr, T[] elements)

Removes the given elements from the given array.

remove
Range remove(Range range, Index indexes)

Removes the elements with the given indexes from the given range.

repeat
T[] repeat(T[] arr, size_t number)

Repests arr number of times.

strip
T[] strip(T[] arr, C delimiter)

Strips all the trailing delimiters from the given array.

toMutable
T[] toMutable(const(T)[] array)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

any
bool any [@property getter]

Returns $(D_KEYWORD true) if this array contains any elements.

first
auto first [@property getter]

Returns the first element of the given array.

isEmpty
bool isEmpty [@property getter]

Returns $(D_KEYWORD true) if this array contains no elements.

last
auto last [@property getter]

Returns the first element of the given array.

Meta

Authors

Jacob Carlborg

Version

Initial created: 2008