Cold Help System: Programming: ColdC Reference Manual: Functions: List: delete()

LIST delete(LIST list, INTEGER pos)

This function deletes the element in the argument list, pointed to by the position argument pos, and returns the result. If position is less than 1 or is greater than the length of list, then delete() throws a ~range error. Example:

delete([2, 3, 4], 2)
=> [2, 4]

delete() | insert() | join() | listgraft() | listlen() | replace() | setadd() | setremove() | sublist() | union() | listidx()

the Cold Dark