Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

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



  • Prev by Date: Re: Re: need MathLie mathematica package
  • Next by Date: Re: NIntegrate - Gaussian quadrature more exact than thought
  • Previous by thread: Picking Arguments
  • Next by thread: Re: Picking Arguments