From: "Joel Neely"
<snip>
> What does this have to do with REBOL???  Please consider the
> following function definitions:
>
> insflatten: func [b [block!] /local front] [
>     either empty? b [
>         copy []
>     ][
>         head insert insflatten next b either block? front: first b [
>             insflatten front
>         ][
>             front
>         ]
>     ]
> ]
>
> flattenins: func [b [block!] /local result front] [
>     either empty? b [
>         result: copy []
>     ][
>         front: first b
>         result: insflatten next b
>         either block? front [
>             insert result insflatten front
>         ][
>             insert result front
>         ]
>     ]
>     result
> ]

Hi, Joel,

Did you intend to call insflatten from within flattenins? Or were you aiming
to have a recursive function call and just had a plan typing "flat" ?
--Scott Jones

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to