Re:Functional programming languages should be better at muta...
by senorrib on Tuesday July 30, 2024 @07:27PM
(#41115104)
It isn’t. There’s no guarantee that .map will be processed in sequence. In fact, .map is usually a great candidate for parallelization.
[ Parent
| on HN ]
Re:Functional programming languages should be better at muta...
by deredede on Wednesday July 31, 2024 @01:19AM
(#41116577)
The "sequence" in the problem statement does not refer to the order of operations but to the data structure storing the results.
A parallel `Array.map` still computes a sequence, even though it may not compute in sequence.