Expand on `String::split` to be as great as `joinT...
# stdlib
h
Expand on
String::split
to be as great as `joinToString`:
Copy code
fun String.split(
    delimiter: CharSequence = ", ",
    prefix: CharSequence = "",
    postfix: CharSequence = "",
    limit: Int = -1
): List<String>
Copy code
fun <R> String.split(
    delimiter: CharSequence = ", ",
    prefix: CharSequence = "",
    postfix: CharSequence = "",
    limit: Int = -1,
    transform: (CharSequence) -> R
): List<R>
1
d
There's `spiltToSequence`but I guess that's not quite the same.