unfold

fun <Input, Output> unfold(initial: Output, next: suspend (Output) -> Output): Schedule<Input, Output>(source)

Creates a Schedule that unfolds values of Output with an initial value, and the next function to compute the next value.