forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Remove each
angerangel edited this page Mar 19, 2013
·
1 revision
REMOVE-EACH 'word data body
Removes values for each block that returns true; returns removal count.
REMOVE-EACH is a native value.
- word -- Word or block of words to set each time (local) (word! block!)
- data -- The series to traverse (modified) (series!)
- body -- Block to evaluate (return TRUE to remove) (block!)
#SOURCE
remove-each: make native! [ [
{Removes values for each block that returns true; returns removal count.}
'word [word! block!] "Word or block of words to set each time (local)"
data [series!] "The series to traverse (modified)"
body [block!] "Block to evaluate (return TRUE to remove)"
] ]