W3cubDocs

/Kotlin

toList

fun toList(): List<String>

Returns destructured group values as a list of strings. First value in the returned list corresponds to the value of the first group, and so on.



fun main(args: Array<String>) {
//sampleStart
//Missing function name in @sample
//sampleEnd
}

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-match-result/-destructured/to-list.html