Re: Q: extracting list of arguments of function
- To: mathgroup at smc.vnet.net
- Subject: [mg16557] Re: [mg16468] Q: extracting list of arguments of function
- From: Jurgen Tischer <jtischer at col2.telecom.com.co>
- Date: Tue, 16 Mar 1999 04:00:25 -0500
- Organization: Universidad del Valle
- References: <199903130722.CAA24544@smc.vnet.net.>
- Sender: owner-wri-mathgroup at wolfram.com
JT, foo[goo_Symbol[moo_,noo_]]:={moo,noo} Jurgen (JT) Jerzy Niesytto wrote: > > Let's assume that we want to pass function goo as argument > to another function foo and extract list of arguments > of the function goo: > foo[fun_] := Module[{argList}, argList = Table[fun[[i]],{i,1,2}] ] > foo[goo[x,y]]; > > This will result in list: > {x,y} > > But if goo was defined before eg: > goo[s_,t_] = s^2 + t^3; > > then we get: > {x^2,y^3} ..... > > Can anybody point me in a right direction here? > Sorry for such an elementary question... > > JT
- References:
- Q: extracting list of arguments of function
- From: Jerzy Niesytto <woland99@earthlink.net>
- Q: extracting list of arguments of function