MathGroup Archive 2007

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

Search the Archive

Picking Arguments

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73985] Picking Arguments
  • From: Mr Ajit Sen <senra99 at yahoo.co.uk>
  • Date: Sat, 3 Mar 2007 23:59:46 -0500 (EST)

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