Hi Paul,

>> a: "101"
== "101"
>> forall a [print index? a]
1
2
3
== false
>>

This changes the actual index of a, so you will likely want to do this
afterward:

>>a: head a

Foreach does not effect the index, it just feeds you the data. :-()

--Ryan

[EMAIL PROTECTED] wrote:

>         Is there an alternative for:
>
>         >>a: "101"
>         >>foreach item a [print index? item]
>         1
>         2
>         3
>
> Obvious to you REBOL gurus this generates an error.  But it illustrates
> clearly what I want to do.  Damn, index? is native!  :)   Anyone have some
> helpful alternatives.
>
> Paul Tretter

--

Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400


Reply via email to