Maybe there's a better way, I hate the literal cod...
# advent-of-code
k
Maybe there's a better way, I hate the literal code duplication there.
p
I have one local function to which I pass
Int::inc
or
Int::dec
to go right or left 🙂
k
Good idea, I'll give that a shot to see if I like it better.
p
But I had same two loops and made it nicer only after solving the challenge 😆
j
@Pavlo Liapota I am totally stealing your code 🙂
🙂 1