MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: don't understand #

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28823] Re: [mg28813] don't understand #
  • From: Adalbert Hanssen <hanssen at zeiss.de>
  • Date: Tue, 15 May 2001 00:58:56 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Borut,

probably this is, what you are after:

f[x,#[[1]],#[[2]]]& /@ Transpose[{{1,2,3},{a,b,c}}]

returning

{f[x, 1, a], f[x, 2, b], f[x, 3, c]}

regards

Adalbert





	borut at email.si
	14.05.01 07:46
		 
		 An: mathgroup at smc.vnet.net@EMAIL
		 Kopie: (Blindkopie: Adalbert Hanssen/Aalen/Zeiss/DE)
		 Thema: [mg28813] don't understand #

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






  • Prev by Date: webMathematica Hosting Service
  • Next by Date: Re: don't understand #
  • Previous by thread: Re: don't understand #
  • Next by thread: Re: don't understand #