[REBOL] Re: Find? Copy/Part?
From: pwawood::mango::net::my at: 19-Jan-2005 8:12
Hi Carlos
Ingo's first example used find:
Index? find next find str #"*" #"*"
If you insert ( )s it helps to see what's going on (though it would slow
Rebol down)
Index? (find (next (find str #"*")) #"*")
Working from the inner parentheses (brackets) outward :
1. Find str #"*" sets the index of str at the first * found
2. Next ( ) sets the index of str to the next character
3. Find (( )) #"*" sets the index of str at the next * found
4. index? ((( ))) returns the value of the index as an integer.
Hope this explanation helps.
Peter