range

fun range(start: Int, count: Int): Flow<Int>(source)

Creates a Flow that emits a sequence of numbers within a specified range.

Parameters

start

The value of the first integer in the sequence.

count

The number of sequential integers to generate.