Sunanda,

I am just solving exercises on
http://www.ic.unicamp.br/~meidanis/courses/mc336/2006s2/funcional/L-99_Ninety-Nine_Lisp_Problems.html,
using it to learn Rebol.
I do know that we have those words, but I have to have a means of learning.


Regards,
Emeka

On Thu, Sep 2, 2010 at 8:33 PM, Sunanda <[email protected]> wrote:

>
>  Good game!
>
> I've not looked at them all -- perhaps other will.
>
> But the last two are easily replaced  by standard REBOL functions:
> >   reverse-list: func [series new-series][
> >      if empty? series [return new-series]
> >      reverse-list next series join to-block first series new-series
> >      ]
> >
> Just use REVERSE:
>     reverse [1 2 a print]
>     == [print a 2 1]
>
>
> >   count-list: func [series n][
> >     if empty? series [return n]
> >     count-list next series add 1 n
> >      ]
> >
> Just use LENGTH?:
>     length? [1 2 a print]
>     == 4
>
> Check out the dictionary of REBOL words for other things you can do with
> a series:
>     http://www.rebol.com/docs/dictionary.html
>
>
> Sunanda.
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to