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


13.3.3 List Item Range Functions

Item range functions operate on list elements between two ends, two elements indicated by the index in the list. The end items are included in the operation.

The end items are further identified as p (head or first given item index) and q (tail or second given item index).

If q indicates an element prior to p the elements starting with the p indexed one to the end of the list and those from the beginning of the list to the q indexed one are operated (as if the list was circular).

l_erase

list l_erase(list l, integer p, integer q);

is l, deletes the p to q indexed elements of the l list

lq_clear

list lq_clear(list l, integer p, integer q);

same as ‘l_erase

lq_xcall

object lq_xcall(list l, object o, integer i, integer p, integer q, &...);

is the evaluation result of the function indicated by o called with the unnamed arguments and the p to q indexed elements in the l list inserted at the position i in between the unnamed arguments.

The variadic arguments are passed by reference where possible.