import * as tsplus_module_1 from "@effect/core/io/Schedule/operations/either";
import * as tsplus_module_2 from "@effect/core/io/Schedule/operations/map";
/**
 * The same as `either` followed by `map`.
 *
 * @tsplus fluent ets/Schedule eitherWith
 * @tsplus fluent ets/Schedule/WithState eitherWith
 */

export function eitherWith_(self, that, f) {
  return tsplus_module_2.map_(tsplus_module_1.either_(self, that), ({
    tuple: [out, out2]
  }) => f(out, out2));
}
/**
 * The same as `either` followed by `map`.
 *
 * @tsplus static ets/Schedule/Aspects eitherWith
 */

export const eitherWith = (that, f) => self => eitherWith_(self, that, f);
//# sourceMappingURL=eitherWith.mjs.map