Subject: green's functions, passing functions to a routine
From: John Lapeyre
Date: Sun, 7 Sep 2008 20:59:53 -0700
> It just seems a bit heavy to write apply(f,[a,b,c]) where (+f)(a,b,c) would
> do.
Neither one is too pretty!
While I'm here. I wonder if this is a good idiom for the generic
problem of having v = [a,b,c] and needing to call a function that
wants this: func(expr,a,b,c)
lpart(m,v) := apply(part,cons(m,v));
so that lpart(expr,[i,j]) is the same as part(expr,i,j)
I don't like it because it probably copies expr which
may be large.
Maybe there is some other way to splice the args in.
John