Hi John,

I think Jeff's example (subject: [REBOL] Functional programming in REBOL Re:):

use [pod][
        do pod: func [x][
            any [all [zero? x 1] all [odd? x x * pod x - 1] pod x - 1]
    ]   20
]

which, when executed evaluates to:
>> use [pod][
[    do pod: func [x][
[            any [all [zero? x 1] all [odd? x x * pod x - 1] pod x - 1]
[            ] 20
[    ]
== 654729075

actually demonstrates that "it is possible to write mostly functional
code that can handle reasonable amounts of data". 

Elan

you wrote:
>Since REBOL doesn't have any functional iterators with state
>variables, I'm not sure it is possible to write mostly functional
>code that can handle reasonable amounts of data.  Again, we're
>pushed back to imperative style.
>
>John
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>
>

Reply via email to