Monthly Archives: January 2020

Map Reduce for Mortals

Suppose you want the sum of the squares of theĀ  elements of a list congruent to 1 mod 3 you can write reduce(lambda t,x t+x,map(square,filter(lambda x: x % 3 == 1,[1,2,3,4,5]))) Clear? As mud … (there are plenty of tutorials … Continue reading

Posted in Uncategorized | 3 Comments