Map vs Reduce #6587
Replies: 1 comment
-
Because, yes. Each data structure is used for a different purpose. The first The 2nd map is being used to convert the object structure into a scalar so we can "join" the values of the object. To be honest, we could use a In performance terms, this is negligible since these arrays would never pass the dozens of entries. Even with millions of entries this mapping is simple enough. |
Beta Was this translation helpful? Give feedback.
-
why are you using 2(3) map functions instead of 1 reduce?
in this
Beta Was this translation helpful? Give feedback.
All reactions