MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Picking Arguments


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


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com


  • Prev by Date: Mathematica Special Interest Group
  • Next by Date: Re: Conversion to html problems
  • Previous by thread: Mathematica Special Interest Group
  • Next by thread: Re: Picking Arguments