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


remove

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

The removeIfNot function scans list and constructs a new list identical to the original except for containing only elements satisfying fn.

The original list is never modified.

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


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