const fileName_1 = "(@effect/core) _src/io/Schedule/operations/contramap.ts";
import * as tsplus_module_1 from "@effect/core/io/Effect/operations/succeed";
import * as tsplus_module_2 from "@effect/core/io/Schedule/operations/contramapEffect";
/**
 * Returns a new schedule that deals with a narrower class of inputs than this
 * schedule.
 *
 * @tsplus fluent ets/Schedule contramap
 * @tsplus fluent ets/Schedule/WithState contramap
 */

export function contramap_(self, f) {
  return tsplus_module_2.contramapEffect_(self, input2 => tsplus_module_1.succeed(() => f(input2), fileName_1 + ":12:57"));
}
/**
 * Returns a new schedule that deals with a narrower class of inputs than this
 * schedule.
 *
 * @tsplus static ets/Schedule/Aspects contramap
 */

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