[REBOL] Index? Re:
From: ryanc:iesco-dms at: 25-Aug-2000 14:29
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
[ptretter--charter--net] 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