but also the knowledge to know not to bother optimizing because n is small and your worst case would be something like a loop over 20 items inside another loop of 20 items.

^ computer witch ^
^ self-taught 3D modeller ^
^ 🏳️⚧️, fan of girls ^
^ old enough ^
^ anarchist 🟥⬛^
bysee them uncombined here
but also the knowledge to know not to bother optimizing because n is small and your worst case would be something like a loop over 20 items inside another loop of 20 items.
do have to follow up that I did optimize a little bit with an early exit setup. but also in doing that I realized I could cut down the n in the m x n setup to 2, and that the whole setup was thus extremely overkill and funny. I don't know what the overall lesson is, except I am really enjoying these one-off scripts for window manager use.