Paul, I don't see the result as an error.
You're just printing out the "index" of each item in 'a;

Look at this console session, with remarks inserted following the :'s:

>> a: "101"
== "101"
>> foreach item a [print item]
1 ; the index of this '1 is 1.
0 ; the index of this '0 is 2, etc.
1
>>
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 25, 2000 12:47 PM
Subject: [REBOL] Index?


>
> 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
>
>

Reply via email to