Re: 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
- Subject: [mg105331] Re: How to make {f,g}[a,b,c] to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}
- From: Steven Siew <stevensiew2 at gmail.com>
- Date: Sat, 28 Nov 2009 01:06:55 -0500 (EST)
- References: <heoe15$4ph$1@smc.vnet.net>
MapThroughOuter[ funclist_ , datalist_ ] := Map[Through,Outer [funclist,datalist]] MapThroughOuter[ {f,g} , {a,b,c} ] {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}