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

toSafeList

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

Extract safely a List from an Iterator - if an [Iterator.next()) call throws an error, ignore this call.