On Wed, Feb 8, 2017 at 7:15 AM, Lindsay John Lawrence <
lawrence.lindsayj...@gmail.com> wrote:

> 'fill' (http://software-lab.de/doc/refF.html#fill) does the job in some
> cases as well and is a bit easier to read...
> : (de adder (N) (let @X N (fill '((x) (+ x @X)))))
> -> adder
this is a solution very similar to newlisp style, and probably  fill  is
the most similar function to newlisp's  expand (and curry being the second
most similar ;)

But I feel more comfortable with the other you provided

: (de adder (N) (list '(x) (list '+ 'x (eval 'N))))

because I feel more in control of generated lambda


Reply via email to