Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: Thread? Through? Operate?

  • To: mathgroup at
  • Subject: [mg32400] Re: [mg32388] Thread? Through? Operate?
  • From: BobHanlon at
  • Date: Sat, 19 Jan 2002 01:16:34 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In a message dated 1/18/02 12:55:40 AM, 
johannes.ludsteck at writes:

>I have a list of n unnamed functions
>f = {expr1 &, expr2 &,... ,exprn &}
>(each function has exactly one arguement.
>and a list of n arguments.
>arg = {arg1, arg2,... ,argn}
>I simply want to apply each function expri &
>to the respective argument argi in order 
>to obtain the list of function values fi.
>Is there no more elegant way than the following one?
>Map[#[[1]][#[[2]]]&, Transpose[{f,arg}]

MapThread[#1[#2]&, {f, arg}]


Inner[#1[#2]&, f, arg, List]

Bob Hanlon
Chantilly, VA  USA

  • Prev by Date: finding independent variable groups
  • Next by Date: Re: Thread? Through? Operate?
  • Previous by thread: Re: Thread? Through? Operate?
  • Next by thread: Re: Thread? Through? Operate?