MathGroup Archive 2010

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

Search the Archive

Re: = {f[a, b], g[c,

  • To: mathgroup at
  • Subject: [mg109759] Re: = {f[a, b], g[c,
  • From: Bill Rowe <readnews at>
  • Date: Sat, 15 May 2010 06:14:55 -0400 (EDT)

On 5/14/10 at 5:35 AM, lshifr at (Leonid Shifrin) wrote:

>How about

>In[1]:= MapThread[Apply, {{f, g}, {{a, b}, {c, d}}}]

>Out[1]= {f[a, b], g[c, d]}

Here is another way

In[1]:= Tr[Through[{f, g}[#]] & /@ {{a, b}, {c, d}}, List]

Out[1]= {f[{a, b}], g[{c, d}]}

But in terms of simplicity, using MapThread seems better

  • Prev by Date: Re: Help: my mathemetica is broken
  • Next by Date: Re: Genetic Algorithm
  • Previous by thread: Re: NIntegrate Confusion
  • Next by thread: Need help evaluating cells in Kernel