Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> 
>       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                           [EMAIL PROTECTED]
20540 �bo                                   [EMAIL PROTECTED]
Finland

Reply via email to