Re: Functional programming
- To: mathgroup at smc.vnet.net
- Subject: [mg39041] Re: Functional programming
- From: Bill Rowe <listuser at earthlink.net>
- Date: Sat, 25 Jan 2003 01:28:23 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 1/24/03 at 5:07 AM, _NOzturner0826SPAM_ at hotmail.com (Zachary Turner) 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? Try f[#,4]&/@Range[1,4]