parrotcode: Array of integers | |
Contents | PMCs |
src/pmc/intlist.pmc - Array of integers
IntList
provides an integer-only array.
PMC *clone()
void init()
void mark()
void set_integer_keyed_int(INTVAL key, INTVAL value)
value
at index key
.void set_integer_keyed(PMC *key, INTVAL value)
value
at index *key
.INTVAL get_integer()
INTVAL get_integer_keyed_int(INTVAL key)
key
.INTVAL get_integer_keyed(PMC *key)
*key
.void push_integer(INTVAL value)
value
to the end of the list.INTVAL pop_integer()
void unshift_integer(INTVAL value)
value
to the start of the list.INTVAL shift_integer()
|