Recovered partial solution to AoC2017; it was only partway through that I realized I should preserve my code.