https://kotlinlang.org logo
#announcements
Title
# announcements
k

karelpeeters

12/11/2017, 8:45 AM
Ah, gotcha, didn't see the
\n
.
str.split("\n").map { it.split("\t").map { it.toInt() } }
Or as @Czar would say,
str.split("\n").map { it.split("\t").map(String::toInt) }
😛
😜 1
😃 1
k

kartikpatodi

12/11/2017, 8:52 AM
😂 @Czar
thanks @karelpeeters
c

Czar

12/11/2017, 10:12 AM
Yup, I'd be reluctant to use
it
twice for different steps of the chain.
👍🏼 1
2 Views