ahegazy
08/01/2018, 2:01 PMString[] 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?