NAME ^

src/classes/Array.pir - Perl 6 Array class and related functions

Object Methods ^

Array methods ^

delete(indices :slurpy)

Delete the elements specified by indices from the array (i.e., replace them with null). We also shorten the array to the length of the last non-null (existing) element.

exists(indices :slurpy)

Return true if the elements at indices have been assigned to.

pop()

Remove the last item from the array and return it.

push(args :slurpy)

Add args to the end of the Array.

shift()

Shift the first item off the array and return it.

unshift(args :slurpy)

Adds args to the beginning of the Array.

Arrayref ^


parrot