Apply a function to each list member?

Mikael Olofsson mikael at
Fri Nov 5 06:49:08 EST 1999

On 05-Nov-99 Malcolm Tredinnick wrote:
 >  Correct. In fact, since we're being precise, let me point out that
 >  (mathematically speaking), all functions are maps (or mappings), but not
 >  all mappings are functions. The point is that a function should have only a
 >  single "output" for any given input (i.e. it should be many-to-one or
 >  one-to-one, not one-to-many). So some mapping that sends, say, the number 2
 >  to the numbers 3 and 4 is not a function (but a mapping that sends both the
 >  numbers 3 and 4 to the number 2 is a function, since for each input there
 >  is only a single output).

Ahh, there we got it. Good thing someone has got it straight.

 >  (Hmm .. I've just realised that a few of my recent postings have had
 >  amazingly little to do with Python. I promise to stick to the topic from
 >  now one. Swear! :-) )

I-think-I-should-get-in-line-ly y'rs


E-Mail:  Mikael Olofsson <mikael at>
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date:    05-Nov-99
Time:    13:47:18

This message was sent by XF-Mail.

More information about the Python-list mailing list