W3cubDocs

/Kotlin

toList

fun <T> Pair<T, T>.toList(): List<T>

Converts this pair into a list.

fun <T> Triple<T, T, T>.toList(): List<T>

Converts this triple into a list.

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