Re: don't understand #

*To*: mathgroup at smc.vnet.net*Subject*: [mg28820] Re: [mg28813] don't understand #*From*: Andrzej Kozlowski <andrzej at tuins.ac.jp>*Date*: Tue, 15 May 2001 00:58:54 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

on 01.5.14 2:33 PM, Borut L at borut at email.si wrote: > Hi, > > I can't solve this one: > > I want a function f to map on two lists sequently... like Table! > > smth. like > > f[x,#(1st),#(2nd)]&/@{{1,2,3},{a,b,c}} > > should produce {f[x,1,a],f[x,1,b],...f[x,3,c]} > > > > Please help. Thank, > > Borut Levart > > > > Do you mean something like: In[8]:= Outer[f[x,#1,#2]&,{1,2,3},{a,b,c}]//Flatten Out[8]= {f[x,1,a],f[x,1,b],f[x,1,c],f[x,2,a],f[x,2,b],f[x,2,c],f[x,3,a],f[x,3,b], f[x,3,c]} ? -- Andrzej Kozlowski Toyama International University JAPAN http://platon.c.u-tokyo.ac.jp/andrzej/ http://sigma.tuins.ac.jp/~andrzej/