Kotlin Pass Vararg to Another Function

April 8, 2019
fun CharSequence.splitNotEmpty(vararg delimiters: String): List<String> {
    return this.split(*delimiters).filter {
        it.isNotEmpty()
    }
}

NOTE: split

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.