summaryrefslogtreecommitdiff
path: root/python/mapred.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mapred.py')
-rwxr-xr-xpython/mapred.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/mapred.py b/python/mapred.py
new file mode 100755
index 0000000..c61f7cc
--- /dev/null
+++ b/python/mapred.py
@@ -0,0 +1,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
+