I have some issues falling asleep each night which...
# advent-of-code
k
I have some issues falling asleep each night which is starting to impact my coding speed. This took me 20 minutes to make
And this is what I made half an hour later when my brain remember all the functions again.
k
.map { }.toMap()
is
associate
🙂
k
Well, the half an hour didn't give me 4 hours worth of sleep.
Also I want to point out line 23 of the original
k
You mean that could be
?: error
?
k
No that would be the opposite
I should have used
return
but the idea came from 2017 day 7 which I recently tried as a random exercise which was actually quite similar but if I couldn't use a return there as there was a lot of branching going on so I used
error()
to just stop the program instead.