[REBOL] Re: Linguistic influences
From: gscottjones:mchsi at: 11-May-2002 10:27
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