NAME ^

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

Methods ^

delete
Remove items from an array.
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 invocant as a List.
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 Array as a List of its values.

Operators ^

circumfix:[]
Create an array.

Coercion methods ^

Array

Private Methods ^

!flatten()
Return self, as Arrays are already flattened.
!STORE()
Store things into an Array (e.g., upon assignment)


parrot