Remove each

angerangel edited this page Jan 7, 2013 · 1 revision
Clone this wiki locally

USAGE

   REMOVE-EACH 'word data body

DESCRIPTION

Removes values for each block that returns true; returns removal count.

REMOVE-EACH is a native value.

ARGUMENTS

  • 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)"
] ]