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


13.5.13 Data Type Generic Record 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.

r_add

void r_add(record r, text s,);

inserts data of the type and value described by the last argument in the s position in the r record if r does not map s, does nothing otherwise

r_bind

void r_bind(record r, text s,);

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

r_case

object r_case(record r, text s,);

is the data in the s position in the r record, 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)

r_dock

void r_dock(record r, text s,);

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

r_fit

record r_fit(record r, ...);

is r, 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 r record. It faults if one of the insert positions is taken, with data already inserted remaining.

r_fix

void r_fix(record r, text s,);

inserts or replaces data in the s position in the r record with data of the type and value described by the last argument

r_gauge

object r_gauge(record r, text s, object o);

is the data in the s position in the r record if any, o otherwise

r_get

object r_get(&, record r, text s);

is the data in the s position in the r record, sets the first argument as the same data (data is linked if allowed, copied otherwise)

r_jack

integer r_jack(&, record r, text s);

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

r_over

integer r_over(&, record r, text s);

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

r_pick

object r_pick(record r, text s);

is the data in the s position in the r record, the data is removed from the record

r_put

void r_put(record r, text s,);

inserts data of the type and value described by the last argument in the s position in the r record

r_query

object r_query(record r, text s);

is the data in the s position in the r record

r_replace

void r_replace(record r, text s,);

replaces data in the s position in the r record with data of the type and value described by the last argument

r_tie

record r_tie(record, ...);

is r, 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 r record. it faults if one of the insert positions is taken, with data already inserted remaining.

r_yank

object r_yank(&, record r, text s);

is the data in the s position in the r record, sets the first argument as the same data and removes s from r

ro_case

object ro_case(record r, object o,);

is the data in the o position in the r record, 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 an intrinsic string

ro_query

object ro_query(record r, object o);

is the data in the o position in the r record, with o an intrinsic string or a byte array


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