Functional Programming Tools : Functional Programming : Buildin Function PYTHON examples


PYTHON examples » Buildin Function » Functional Programming »

 

Functional Programming Tools


Functional Programming Tools: map

"map(function, sequence)" calls function(itemfor each of the sequence's 
# items and returns a list of the return values. For example, to compute some 
# cubes:

def cube(x)return x*x*x

print map(cube, range(111))
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Buildin Function
» Functional Programming