/** * Repeats each element of the stream using the provided schedule. Repetitions * are done in addition to the first execution, which means using * `Schedule.recurs(1)` actually results in the original effect, plus an * additional recurrence, for a total of two repetitions of each value in the * stream. * * @tsplus static effect/core/stream/Stream.Aspects repeatElements * @tsplus pipeable effect/core/stream/Stream repeatElements */ export function repeatElements(schedule: Schedule) { return (self: Stream): Stream => self.repeatElementsEither(schedule).collectRight }