| parrotcode intlist PMC | |
| Docs | FAQ | Download | Examples | Talks | Resources | Perl 6 | Languages | Who's Who | Donors | Cage Cleaners | Wiki | |
src/pmc/intlist.pmc - Array of integers
IntList provides an integer-only array.
PMC *clone()Creates and returns a clone of the list.
void init()Initializes the list.
void mark()Marks the list as live.
void set_integer_keyed_int(INTVAL key,
INTVAL value)Sets value at index key.
void set_integer_keyed(PMC *key,
INTVAL value)Sets value at index *key.
INTVAL get_integer()Returns the number of elements in the list.
INTVAL get_integer_keyed_int(INTVAL key)Returns the value of the element at index key.
INTVAL get_integer_keyed(PMC *key)Returns the value of the element at index *key.
void push_integer(INTVAL value)Adds value to the end of the list.
INTVAL pop_integer()Removes and returns the last element in the list.
void unshift_integer(INTVAL value)Adds value to the start of the list.
INTVAL shift_integer()Removes and returns the first element in the list.
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|