tock / ai.tock.shared / kotlin.collections.Iterator / toList

toList

fun <T> Iterator<T>.toList(): List<T> (source)

Extract a List from an Iterator.