Top "Reduce" questions

Reduce refers to the second step in a MapReduce computation, a component of a larger scalable, parallel-izable algorithm.

python : can reduce be translated into list comprehensions like map, lambda and filter?

When programming in python, I now avoid map, lambda and filter by using list comprehensions because it is easier to …

python list reduce map-function
Hadoop: key and value are tab separated in the output file. how to do it semicolon-separated?

I think the title is already explaining my question. I would like to change key (tab space) value into key;…

map hadoop mapreduce reduce
python: union keys from multiple dictionary?

I have 5 dictionaries and I want a union of their keys. alldict = [dict1, dict2, dict3, dict4, dict5] I tried allkey = …

python dictionary lambda reduce
String array reduce

I am trying to join the elements of a String array via the reduce function. A tried for a bit …

swift reduce
Why Array.prototype.reduce() is not taking an empty array as accumulator?

I am trying to filter all the elements in an array which are bigger than 10 to a new array. I …

javascript arrays reduce
push() won't work as expected in reduce()

Why doesn't a.push(b) work in my Array.reduce()? a=a.push(b) where b is a string, turns …

javascript arrays reduce
Sum ruby hash values

I am trying to sum values from a ruby hash but using either inject or reduce does not return the …

ruby hash reduce inject
JavaScript array reduce start from index

This problem has been bugging me for a while now and I can't seem to find an answer in web. …

javascript arrays reduce
Why does TypeScript infer the 'never' type when reducing an Array with concat?

Code speaks better than language, so: ['a', 'b', 'c'].reduce((accumulator, value) => accumulator.concat(value), []); The code is very …

typescript functional-programming reduce reducers strictnullchecks
Map Reducing object with underscore

I want to reduce this object to just an object containing product name and average price. What's the fastest way …

javascript map mapreduce underscore.js reduce