Next: , Previous: , Up: The Index Library   [Index]


13.4.10 Data Type Generic Index Functions

Parameters of ‘object’ type may be substituted in function calls by data of any type, unless otherwise specified.

See The Object Type.

See Referable Objects.

i_add

void i_add(index i, integer k, );

inserts data of the type and value described by the last argument in the k position in the i index if i does not map k, does nothing otherwise

i_bind

void i_bind(index i, integer k,);

replaces data in the k position in the i index with a reference to or a copy of the data described by the last argument (references are made where data types allow)

i_case

object i_case(index i, integer k,);

is the data in the k position in the i index, as inserted or replaced by the function with a reference to or a copy of the data described by the last argument (references are made where the data types allow)

i_dock

void i_dock(index i, integer k,);

inserts a reference to or a copy of the data described by the last argument in the k position in the i index if i does not map k, does nothing otherwise (references are made where data types allow)

i_fit

index i_fit(index i, ...);

is i, inserts data of the types and values described by the every second optional argument in the positions indicated by the preceding optional arguments in the i index. It faults if one of the insert positions is taken, with data already inserted remaining.

i_fix

void i_fix(index i, integer k,);

inserts or replaces data in the k position in the i index with data of the type and value described by the last argument

i_gauge

object i_gauge(index i, integer k, object o);

is the data in the k position in the i index if any, o otherwise

i_get

object i_get(&, index i, integer k);

is the data in the k position in the i index, sets the first argument as the same data (data is linked if allowed, copied otherwise)

i_jack

integer i_jack(&, index i, integer k);

is 0 if the i index does not map k or if the data in the k position is not of the same type as the first argument, non zero otherwise. Sets the first argument as the data in the k position for the latter case (data is linked if allowed, copied otherwise).

i_over

integer i_over(&, index i, integer k);

is 0 if the i index does not map k or if the data in the k position is not of the same type as the first argument, non zero otherwise. Sets the first argument as the data in the k position for the latter case and removes k from i.

i_pick

object i_pick(index i, integer k);

is the data in the k position in the i index, the data is removed from the index

i_put

void i_put(index i, integer k,);

inserts data of the type and value described by the last argument in the k position in the i index

i_query

object i_query(index i, integer k);

is the data in the k position in the i index

i_replace

void i_replace(index i, integer k,);

replaces data in the k position in the i index with data of the type and value described by the last argument

i_tie

index i_tie(index i, ...);

is i, inserts references to or copies of data of the types and values described by the every second optional argument in the positions indicated by the preceding optional arguments in the i index. it faults if one of the insert positions is taken, with data already inserted remaining.

i_yank

object i_yank(&, index i, integer k);

is the data in the k position in the i index, sets the first argument as the same data and removes k from i

io_case

object io_case(index i, object o,);

is the data in the o position in the i index, as inserted or replaced by the function with a reference to or a copy of the data described by the last argument (references are made where the data types allow), with o of an intrinsic integral type

io_query

object io_query(index i, object o);

is the data in the o position in the i index, with o of an intrinsic integral type


Next: Data Type Generic Index Front Functions, Previous: Data Type Specific Arithmetic Index Functions, Up: The Index Library   [Index]