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

• To: mathgroup at smc.vnet.net
• Subject: [mg109736] Re: innerApply[{f, g}, {{a, b}, {c, d}}] = {f[a, b], g[c,
• From: Leonid Shifrin <lshifr at gmail.com>
• Date: Fri, 14 May 2010 05:35:19 -0400 (EDT)

```Hi Fred,

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

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

Regards,
Leonid

On Thu, May 13, 2010 at 3:25 PM, Fred Klingener
<gigabitbucket at brockeng.com>wrote:

> This seems to work fine, but there must be a less clumsy way to do it:
>
> Clear[innerApply, functionList, argumentList, f, g, a, b, c, d]
>
> innerApply[functionList_, argumentList_] :=
>  Table[functionList[[j]] @@ argumentList[[j]], {j, 1,
>   Length[functionList]}]
>
> In[770]:= innerApply[{f, g}, {{a, b}, {c, d}}]
> Out[770]= {f[a, b], g[c, d]}
>
> TIA,
> Fred Klingener
>
>

```

• Prev by Date: Re: = {f[a, b], g[c, d]} ?
• Next by Date: Re: innerApply[{f, g}, {{a, b}, {c, d}}] = {f[a, b], g[c,d]} ?
• Previous by thread: Re: = {f[a, b], g[c, d]} ?
• Next by thread: Re: innerApply[{f, g}, {{a, b}, {c, d}}] = {f[a, b], g[c,d]} ?