Companion

object Companion

Functions

Link copied to clipboard
fun <T> empty(): Cursor<out T>

Returns the canonical, already-isOver empty cursor, i.e. one with no elements to yield.

Link copied to clipboard
fun <T> of(iterator: Iterator<T>): Cursor<out T>

Wraps iterator into a lazy Cursor, pulling elements from it as the cursor is traversed.

fun <T> of(sequence: Sequence<T>): Cursor<out T>

Wraps sequence into a lazy Cursor, equivalent to sequence.cursor().