Re: [stack] recursion is too hard
Chris Double <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Mar 12, 2009 at 7:35 PM, John Nowak <[email protected]> wrote: > The problem is that all calls to 'F' except the first see the values > meant to be later consed onto the list from previous calls of 'F'. So is this the issue whereby you want the quotation passed to 'map' in the Factor example below to be able to access the values on the stack to use in the calculation? 5 { 1 2 3 } [ over + ] map nip => { 6 7 8 } Combinators require that calls to the quotation can't see implementation details on the stack and this makes them hard to write? Of so, I agree and I often fall back to locals to implement them (in Factor). Chris. -- http://www.bluishcoder.co.nz