/**
* A schedule that recurs as long as the condition f holds, collecting all
* inputs into a list.
*
* @tsplus static effect/core/io/Schedule.Ops collectWhile
*/
export function collectWhile(
f: Predicate
): Schedule], never, A, Chunk> {
return Schedule.recurWhile(f).collectAll
}