NAME ^

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

Object Methods ^

Array methods ^

exists(indices :slurpy)

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

item()

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

list()

Return Array as a List (i.e., values)

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