Apply a function to each list member?

Fred L. Drake, Jr. fdrake at acm.org
Fri Nov 5 11:12:50 EST 1999


Malcolm Tredinnick writes:
 > 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

  For people who are confused, this is also called a "relation."  All
functions are relations, but not all relations are functions (for
exactly the reasons Malcolm gives).


  -Fred

--
Fred L. Drake, Jr.	     <fdrake at acm.org>
Corporation for National Research Initiatives




More information about the Python-list mailing list