/** * Returns a new schedule that outputs the number of repetitions of this one. * * @tsplus getter effect/core/io/Schedule repetitions */ export function repetitions( self: Schedule ): Schedule { return self.fold(0, (n, _) => n + 1) }