Go to the first, previous, next, last section, table of contents.


deleteif

Function: delete { fn list -> list }
file: 10-C-lists.muf
package: muf
status: alpha

The deleteIf function searches list and destructively removes all elements satisfying fn: The return value is a splice of the given value.

It is usually safer to construct a new list than to modify the existing one: See section removeIf.

Stack:
:: 'b' = ;   [ 'a' 'b' 'c' ]l   deleteIf   --> list
Stack:
list first   list second
Stack: 'a' 'c'

See section delete. See section delete.


Go to the first, previous, next, last section, table of contents.