repeatForever

Returns an infinite Sequence of Unit.

Since

2.0.0


fun <T> repeatForever(list: List<T>, offset: Int = 0): Sequence<T>(source)

Returns an infinite Sequence backed by the given list, starting at the given offset.

Since

2.0.0


fun <T> repeatForever(array: Array<T>, offset: Int = 0): Sequence<T>(source)

Returns an infinite Sequence backed by the given array, starting at the given offset.

Since

2.0.0


fun <T> repeatForever(constant: T): Sequence<T>(source)

Returns an infinite Sequence backed by the given constant.

Since

2.0.0