First page Back Continue Last page Summary Graphics
Heavy Functional Influence
[neal@epoch pychecker]$ python
Python 2.1.1 (#1, Aug 13 2001, 19:37:40)
[GCC 2.96 20000731 (Red Hat Linux 7.1)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> print map.__doc__
map(function, sequence[, sequence, ...]) -> list
Return a list of the results of applying the function to the items of the argument sequence(s). If more than one sequence is given, the function is called with an argument list consisting of the corresponding item of each sequence, substituting None for missing values when not all sequences have the same length. If the function is None, return a list of the items of the sequence (or a list of tuples if more than one sequence).
>>> print map(lambda x : x + 5, [1, 2, 3, 4])
[6, 7, 8, 9]
>>>
Notes: