const fileName_1 = "(@effect/core) _src/io/Schedule/operations/tapInput.ts";
import * as tsplus_module_1 from "@effect/core/io/Effect/operations/zipRight";
import { makeWithState } from "@effect/core/io/Schedule/operations/_internal/makeWithState";
/**
 * Returns a new schedule that effectfully processes every input to this
 * schedule.
 *
 * @tsplus fluent ets/Schedule tapInput
 * @tsplus fluent ets/Schedule/WithState tapInput
 */

export function tapInput_(self, f) {
  return makeWithState(self._initial, (now, input, state) => tsplus_module_1.zipRight_(f(input), () => self._step(now, input, state), fileName_1 + ":16:38"));
}
/**
 * Returns a new schedule that effectfully processes every input to this
 * schedule.
 *
 * @tsplus static ets/Schedule/Aspects tapInput
 */

export const tapInput = f => self => tapInput_(self, f);
//# sourceMappingURL=tapInput.mjs.map