Thanks Max ~

I don't grasp why you use 'item "literally" - can you explain
why?

Kai



On Fri, 30 Nov 2007 00:04:28 -0500, Maxim Olivier-Adlhoch wrote:
> 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]
>
> =3D=3D ["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"]
> ]
> ]
>
> =3D=3D [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
>

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to