Cursor

interface Cursor<T> : Any

Fields

Name Description
abstract next: Cursor<T>
abstract current: T?
abstract hasNext: Boolean
abstract isOver: Boolean

Methods

append

open fun append(other: Cursor<T>): Cursor<T>

Parameters

Name Description
other: Cursor<T>

ReturnValue

Name Description
Cursor<T>

map

open fun <R> map(mapper: (T)->R): Cursor<R>

Parameters

Name Description
mapper: (T)->R

ReturnValue

Name Description
Cursor<R>

Extensions

plus

operator fun <T> Cursor<T>.plus(other: Cursor<T>): Cursor<T>

Receiver

Name Description
Cursor<T>

Parameters

Name Description
other: Cursor<T>

ReturnValue

Name Description
Cursor<T>

CompanionObject

Cursor

interface Cursor<T> : Any

Methods

of

fun <T> of(iterator: Iterator<T>): Cursor<T>

Parameters

Name Description
iterator: Iterator<T>

ReturnValue

Name Description
Cursor<T>

empty

fun <T> empty(): Cursor<T>

ReturnValue

Name Description
Cursor<T>