mensions. (S…s easier: why don’t I start by only caring about one shape of input, our 5 x 3 matrix example. Then I can build up to N x M dimensions. (Sort of like a “base case” approach but more like just narrow th…
…o DRY. It’s fine. Code can be busy. It’s super readable, sequentially tight from top to bottom, the reassignment and recursion procedures happen all in one block. It’s preeeeeetty. Ship it.
by reduci…Y X] — I introduce a lil’ perf bonus by reducing (hehe, 🙊) the number of loops and assignments. Did you notice that?