toCursor

fun <T> Iterator<T>.toCursor(): Cursor<out T>

Wraps this Iterator into a lazy Cursor, pulling elements from it, one by one, as the resulting cursor is traversed. Equivalent to Cursor.of.