|
From: Kris K. <kat...@gm...> - 2014-09-29 22:20:32
|
On 09/29/2014 02:39 PM, Dimiter Prodanov wrote: > Hello, > > I tried this particular syntax because I want to pass named arguments. > In my hypothesis some of the arguments may not have been assigned. > > i.e. for a function f(x,y,z,w) I would like to pass only for example > [x=1, z=2] in the code. > > I don't know if this is possible in Maxima. at and apply looked like > good candidates for this scenario. > Maybe you want to use an assoc list: (%i2) f([args]) := map(lambda([x], assoc(x, args)), ['a,'b,'c,'d])$ (%i3) f(c=charlie,a=alpha); (%o3) [alpha,false,charlie,false] Cheers, Kris Katterjohn |