https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
t

Thomas Legrand

12/05/2018, 4:42 PM
Finally came up with a solution, however not really idiomatic (you can tell I come from Python 😉 ) https://github.com/DnzzL/kotlin-advent-2018/blob/master/src/main/kotlin/tech/thomaslegrand/advent2018/Day05.kt
👍 1
k

karelpeeters

12/05/2018, 5:17 PM
An easy improvement would be to have
doReactions
return whether anything changed, use that as your while condition and do away with all of the other checking.
t

Thomas Legrand

12/06/2018, 8:32 AM
Thank you for your feedback. I was not very proud of the code and I’ll try to apply this change
4 Views