Re: Picking Arguments
- To: mathgroup at smc.vnet.net
- Subject: [mg73989] Re: [mg73985] Picking Arguments
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 4 Mar 2007 02:05:12 -0500 (EST)
- Reply-to: hanlonr at cox.net
A simpler method: A={f[x],g[p,q,r,s],h[u,v,w]}; List@@@A {{x},{p,q,r,s},{u,v,w}} Bob Hanlon ---- Mr Ajit Sen <senra99 at yahoo.co.uk> wrote: > Dear MathGroup, > > Given a list of functions > > A={f[x],g[p,q,r,s],h[u,v,w]}, > > I'd like to pick out their arguments as a list. > > Cases[A,_[args__]:>{args}] > > works fine returning {{x}, {p,q,r,s}, {u,v,w}}. > > How do I achieve the same thing with Select ? > > > Thanks for your help. > > Ajit Sen