https://kotlinlang.org logo
#random
Title
# random
a

ahegazy

08/01/2018, 2:01 PM
when converting from Java to Kotlin using intelliji Converting
String[] result = "Foo, Bar".split(", ");
becomes
val result = "Foo, Bar".split(", ".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()
I usually narrow it down to the same as java, but is that a bug? or is there anything I’m missing there?