clear

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

T[]
clear
(
T
)
(
ref T[] arr
)
out (result) { assert (result.length == 0, "mambo.collection.Array.clear: The length of the resulting array was not 0"); }

Parameters

arr T[]

the array to clear

Return Value

Type: T[]

the cleared array

Throws

AssertException if length of the return array isn't 0

Meta