MathGroup Archive 2001

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

Search the Archive


  • To: mathgroup at
  • Subject: [mg29750] Re:[mg29740] Map
  • From: Ranko Bojanic <bojanic at>
  • Date: Sat, 7 Jul 2001 02:25:55 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

In [mg29740] Allan Hays wrote:
      >>If we try to apply a function g to levels 2 and 3 we get
      >>but this is clearly not what we wanted because of the term
>>The only way to obtain the correct result in this case is to make g listable

>Not in this case:b={{1,5,10},{25,0,{1,2,3,4}},{55,5,2001}}

This is what happens when one reads only the definition of Map and not 
the level specifications on page 1029. For the benefits of people like me, one 
should add this line to the definition of Map:

      Map[f, expr, {-1}] maps f to all symbols and objects in expr that have no       subparts


  • Prev by Date: Partitioning 1-D list into 2-D Matrix
  • Next by Date: Re: Mathematica generating gifs for avi problem
  • Previous by thread: Re: Map
  • Next by thread: Notebook formatting