Re: don't understand #
- To: mathgroup at smc.vnet.net
- Subject: [mg28827] Re: [mg28813] don't understand #
- From: Ken Levasseur <Kenneth_Levasseur at uml.edu>
- Date: Tue, 15 May 2001 00:58:59 -0400 (EDT)
- References: <200105140533.BAA29495@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Borut: You were close! What you need is MapThread: In[1]:= MapThread[f[x, #1, #2] &, {{1, 2, 3}, {a, b, c}}] Out[1]= {f[x, 1, a], f[x, 2, b], f[x, 3, c]} Ken Levasseur Math. Sci. UMass Lowell Borut L 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
- References:
- don't understand #
- From: "Borut L" <borut@email.si>
- don't understand #