Hello [EMAIL PROTECTED]!

On 14-Lug-00, you wrote:

 G>>> find list select list 'a ; no good find can't find the
 G>>> reference to the
 G> block

Hope this clears things up:

>> find [a b c d e f g e g f h i j] [e g f]
== [e g f h i j]
>> find/only [a b c d e f g e g f h i j] [e g f]
== none
>> find/only [[a] [b]] [a]
== [[a] [b]]
>> find/only [[a] [b]] [b]
== [[b]]

So:

>> blk: [a ["a"] b ["b"]]
== [a ["a"] b ["b"]]
>> select blk 'a
== ["a"]
>> find/only blk select blk 'a
== [["a"] b ["b"]]

But notice that that is the same as:

>> next find blk 'a
== [["a"] b ["b"]]

which does one search only.

Regards,
    Gabriele.
-- 
Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

Reply via email to