MathGroup Archive 2007

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

Search the Archive

Mapping a pure function with 2 conponents.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77213] Mapping a pure function with 2 conponents.
  • From: phoenix7744 at gmail.com
  • Date: Tue, 5 Jun 2007 07:02:20 -0400 (EDT)

I'm trying to get the following code to work:

Map[#1^2 + #2 &, {{0, 1}, {2, 3}, {4, 5}}]

The goal is to use a pure function in order to achieve the result:
{1, 7, 21}

The issue is that the evaluation involves   #1^2 + #2 & [{0,1}]
instead of #1^2 + #2 & [0,1]

Thanks, in advance.



  • Prev by Date: Convert to new "Code" style from a now-redundant custom style
  • Next by Date: DIfference of error functions with complex arguments
  • Previous by thread: Re: Convert to new "Code" style from a now-redundant custom style
  • Next by thread: Re: Mapping a pure function with 2 conponents.