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.

item()

Return Array in item context (i.e., self)

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.

values()

Return the values of the Array as a List.


parrot