ColdC: Function/Method Reference: delete()


LIST delete(LIST list, INTEGER pos)

This function returns the result of deleting the element of list numbered by the integer position. If position is less than 1 or is greater than the length of list, then delete() throws a ~range error.

Examples:

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


Last Modified on 24 Mar 1996
Copyright © 1995, 1996, Brandon Gillespie