>Yes, you should really try to understand Lisp's evaluation mechanisms.
I agree.
(eval Lst) and apply look just the job for this...Thank you for these.
Best Regards
Dean
On 20 January 2017 at 20:57, Alexander Burger wrote:
> On Fri, Jan 20, 2017 at 07:20:36PM +, dean
On Fri, Jan 20, 2017 at 07:20:36PM +, dean wrote:
> I just came back to say that the above worked well for both strings and
> numbers entered directly as the passed functions argument but not (it seems
> :) ) for when the argument is supplied in a symbol. eval might well cope
> with that and
This is how I did it where the argument to the canned/passed in function is
supplied as a symbol...
(de x2 (Num) (setq Res (* Num 2)))
(de fnfn (Canned_fn)
#(setq X (car (cdr Canned_fn))) ((car Canned_fn) (eval X)))
#replaced by single stage...
((car Canned_fn) (eval (car (cdr
Thank you Alex...that's great.
I just came back to say that the above worked well for both strings and
numbers entered directly as the passed functions argument but not (it seems
:) ) for when the argument is supplied in a symbol. eval might well cope
with that and if not...I'll work on it.
Note,
On Fri, Jan 20, 2017 at 06:26:14PM +, dean wrote:
> I seem to be able to do this by
> (de some_fn (Canned_fn_and_arg..
>
> and then executing the Canned_fn_and_arg inside some_fn by doing
> ((car Canned_fn) (car (cdr Canned_fn)))
>
> Is this the right way or is there a slicker
I seem to be able to do this by
(de some_fn (Canned_fn_and_arg..
and then executing the Canned_fn_and_arg inside some_fn by doing
((car Canned_fn) (car (cdr Canned_fn)))
Is this the right way or is there a slicker one?