[REBOL] Index? Re:
From: jhagman:infa:abo:fi at: 25-Aug-2000 23:31
Quoting [ptretter--charter--net] ([ptretter--charter--net]):
> 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.
Ummm... I don't have clue what you are trying to do, but maybe
following will help:
while [not tail? a] [
print index? a
a: next a
]
Yours,
Jussi
--
Jussi Hagman CS in Åbo Akademi University
Studentbyn 4 D 33 [juhagman--abo--fi]
20540 Åbo [jhagman--infa--abo--fi]
Finland