In which our heroes create for themselves a convenience and discover a surprising thing.
Last time we looked at the incredible little
map function, and saw
how it could be used to simplify a lot of tedious for-loops while making our
code more clear and less error-prone. This time, we’re going to see if we can
solve a common problem that happens with mapping, nesting.