Turns out I had a bug where I assumed the "mapping...
# advent-of-code
k
Turns out I had a bug where I assumed the "mapping" wouldn't change when the input string changes, of course it actually does for the
pA/B
command. I had an optimized version that worked with int arrays and applied the mapping to other int arrays, unfortunately I had to throw all that out of the window.