summaryrefslogtreecommitdiff
path: root/python/mapred.py
blob: c61f7ccd8187574fa001e4712ac6de14baba8824 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env python2


a = [1, 2, 3, 4, 5]
b = reduce(lambda x,y: x+y, map(lambda x: x**2, a))
print b