[EMAIL PROTECTED] wrote:

> >I'm fairly new to REBOL and wouldn't be surprised if there is a much better
> >way to do it.
> 
> Fairly new, huh? And programming like a veteran .... nice work. One little
> detail:
> 
> >substr: func [s k n /local a]
> >[
> >   a: ""
> >   for i k k + n - 1 1 [a: join a pick s i]
> >   a
> >]

Actually, this could be done with:

   copy/part at s k n

:-)

Ciao,
    /Gabriele./
o--------------------) .-^-. (----------------------------------o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC     \ \-\_/-/ /  http://www.amyresource.it/AGI/ |
o--------------------) `-v-' (----------------------------------o

Reply via email to