Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Improvements anyone?

From: moliad:g:mail at: 30-Nov-2007 0:04

hi kai you might want to copy the block and use remove-each, its a very fast iterator, and expressly built for filtering. remove-each 'item copy ["a" 1 2 4 "f"] [integer? item] == ["a" "f"] using any or all in the evaluated block, is a very dense way to do multi-rule filtering remove-each 'item copy ["a" 1 2 4 "f"] [ any [ all [integer? item item > 3] all [string? item find item "a"] ] ] == [1 2 "f"] also, just adding a 'NOT in front of the 'ANY, reverses the filter, which is handy if you want to split the same incongruous data set into two pieces. -MAx On Nov 29, 2007 11:14 PM, Kai Peters <> wrote: