Day 8 was indeed straightforward: <https://github....
# advent-of-code
j
Day 8 was indeed straightforward: https://github.com/jorispz/aoc-2018/blob/master/src/commonMain/kotlin/P08.kt Timings: JVM
61/2
, JS
62/4
, native
47/38
l
At line 3 I see that
.asSequence()
should have probably been before the
map {}
🙂
and when I look at the rest, it makes me feel I've over-chosen the mutability for my solution this time 😁 could have been more immutable indeed
j
Ah, that's a left-over from earlier versions, good catch! Turns out it's even faster to not use
asSequence
at all, bringing the best time on the JVM down to 1 ms
👍 1