Apply a function to each list member?

Gaetan Corneau Gaetan_Corneau at baan.com
Fri Oct 22 07:52:15 EDT 1999


Thanks Michael (and others who replied privately).

I knew I had seen a function to do this somewhere, but I could not find it.
"map" is not an intuitive name for me (maybe it would if english was my main
language).


>>Your ListApply might be a little more space efficient as it works in
>>place, but not much, because you allocate a list of length len(l)
>>anyway in the range().
I don't know. Efficiency is usually not a concern for me (not when I use
Python).

Thanks,
______________________________________________________
   Gaetan Corneau
   Software Developer (Quality Assurance Team)
   BaaN  Supply Chain Solutions  
   E-mail: Gaetan_Corneau at baan.com        
   Compuserve: Gaetan_Corneau at compuserve.com  
   ICQ Number: 7395494             
   Tel: (418) 266-8252          
______________________________________________________
"Profanity is the one language all programmers know best"




More information about the Python-list mailing list