I originally used this in my day 10 solution, but ended up removing it. Either way, it's a general utility so it belongs here.