Functional Programming Tools : Functional Programming : Buildin Function PYTHON examples


PYTHON examples » Buildin Function » Functional Programming »

 

Functional Programming Tools


Functional Programming Tools: map: More than one sequence may be passed

# the function must have as many arguments as there are sequences and is called with 
# the corresponding item from each sequence (or None if some sequence is shorter 
# than another).

seq = range(8)
def add(x, y)return x+y

print map(add, seq, seq)


           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo Buildin Function
» Functional Programming