3 ms·
It isn’t. There’s no guarantee that .map will be processed in sequence. In fact, .map is usually a great candidate for parallelization.
by senorrib 2y ago
It isn’t. There’s no guarantee that .map will be processed in sequence. In fact, .map is usually a great candidate for parallelization.
- deredede 2y agoThe "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.