2 ms·
That depends on your map function, for most languages. If your map function includes external state (like a variable from an outer scope) then the execution seq
by DougWebb 14y ago
That depends on your map function, for most languages. If your map function includes external state (like a variable from an outer scope) then the execution sequence could change the map function's output. Eg, in C#:
var i = 5;
var result = input.select(item => {
var val = item.v + i;
i = val;
return val;
});
This would be an awful programming practice, but it serves as an example that map isn't necessarily parrallelizable.