fold

fun <C> fold(initial: C, f: suspend (C, Output) -> C): Schedule<Input, C>

Non-effectful version of foldM.