I've got a terrible solution in progress for
this challenge, and I cannot figure out how to make it ignore empty rows/columns to avoid reducing an empty list. I'm wondering two things: is there some cleaner way to get the indices between and including the first and last truthy values that doesn't involve
r/
, and is there some way I can actually get this to apply only to lines containing at least one truthy value?