MathGroup Archive 2003

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

Search the Archive

Re: Functional programming

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39026] Re: [mg39015] Functional programming
  • From: Ignacio Sniechowski <ignatius at mac.com>
  • Date: Sat, 25 Jan 2003 01:24:11 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi, 
MapThread[f,{{1,2,3,4},{4,4,4,4}}]

Will produce

{f[1,4],f[2,4],f[3,4],f[4,4]}
You can check the link:
http://mathematica.co.kr/mathcomm/20_definitionviz/index.html
Very good tutorial on functional programming.
Cheers
Ignacio



On 1/24/03 7:07 AM, "Zachary Turner" <_NOzturner0826SPAM_ at hotmail.com>
wrote:

> I have a function f[a_,b_] defined some way.  i want to fix one argument,
> and then generate an array of values where the other argument varies.  How
> can I do this?
> 
> For example, I want:
> 
> {f[1, 4], f[2, 4], f[3, 4], f[4, 4]}
> 
> Is there an easy way to do this?
> 
> Thanks
> 
> 



  • Prev by Date: Repetitive sums of divisors
  • Next by Date: RE: Functional programming
  • Previous by thread: Re: Functional programming
  • Next by thread: RE: Functional programming