       Re: How to make {f,g}[a,b,c] to become

• To: mathgroup at smc.vnet.net
• Subject: [mg105323] Re: [mg105301] How to make {f,g}[a,b,c] to become
• From: Tomas Garza <tgarza10 at msn.com>
• Date: Sat, 28 Nov 2009 01:05:25 -0500 (EST)
• References: <200911271127.GAA04398@smc.vnet.net>

```I guess you might try

In:= Through[{f,g}[#]]&/@{a,b,c}
Out= {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}

Tomas

> Date: Fri, 27 Nov 2009 06:27:50 -0500
> From: lawrenceteo at yahoo.com
> Subject: [mg105301] How to make {f,g}[a,b,c] to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}
> To: mathgroup at smc.vnet.net
>
> I have a question. How to make {f,g}[a,b,c] to become {{f[a],g[a]},{f
> [b],g[b]},{f[c],g[c]}}?
>
> I want to do {GPD, Population} for all countries.
>
> Something similar to the following...
> {CountryData[#, "GDP"] &, CountryData[#, "Population"] &} /@
>  CountryData[]
>
> It ends up in the form of {f,g}[a,b,c,d,...]. I need a way to
> 'distribute' the country name into the GDP and Population portion.
>
> Thanks.
>

```

• Prev by Date: Re: How to make {f,g}[a,b,c] to become
• Next by Date: Re: RevolutionPlot3D: Specifying the axis of rotation
• Previous by thread: How to make {f,g}[a,b,c] to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}
• Next by thread: Re: How to make {f,g}[a,b,c] to become