ColdC: Function/Method Reference: setremove()


LIST setremove(LIST list, ANY value)

This function removes value from list, if it exists, and returns the result.

Examples:

 
setremove([2, 3, 4, 'foo], 'foo)
=> [2, 3, 4]

setremove([2, 3, 4], 5)
=> [2, 3, 4]

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


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