27 ms·
Thanks! I think what I find confusing is that reduce doesn’t result in any actual reduction in the quantity of the vegetables on hand being mixed in the video
by daft_pink 2y ago
Thanks!
I think what I find confusing is that reduce doesn’t result in any actual reduction in the quantity of the vegetables on hand being mixed in the video even though it’s being called reduce. Maybe you could use a bigger bowl to make it clear that none of the elements in the first two bowls is actually being reduced. I was wondering how the function decided to eliminate some of the vegetables lol.
I definitely learned something from watching the video and having the discussion. I think the map function was super informative!
I liked and subbed!
- freetonik 2y agoYeah, I see how this is confusing. I believe it's called reduce because its goal is to reduce a set of values to a single value. It doesn't necessarily mean that the amount of data is reduced.