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

adamratzman

12/06/2020, 5:32 AM
Please tell me there isn’t a String.toList
NO
b

bjonnh

12/06/2020, 5:33 AM
yes
well it behave a as list in many cases
so you can do String.map {} or String.toSet()…
a

adamratzman

12/06/2020, 5:34 AM
I completely blanked and did tochararray instead, which messed with me because I couldn’t flatten it
b

bjonnh

12/06/2020, 5:39 AM
Look at my 3 liner in the thread
a

adamratzman

12/06/2020, 5:44 AM
Just...wow
k

Kroppeb

12/06/2020, 10:13 AM
It's weird there is a
toSet
but no
toList
Anyway you can do
.map{it}
2 Views