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

karelpeeters

12/07/2017, 8:39 PM
I'm quite happy with my solution now, except for the implementation of
leaf
🙂.
h

holgerbrandl

12/08/2017, 7:37 AM
So compact, great! Although in my taste the named
nodes
map feels a bit redundant because the nodes store the name anyway. A
fun findByName(name:String) = nodes.first{it.name=name}
might work equally well but would allow to use a simple list.
4 Views