// tracing: off
import { chain_, tryCatch } from "./core"
/**
 * Returns an effect whose success is mapped by the specified side effecting
 * `f` function, translating any thrown exceptions into typed failed effects.
 */

export function mapTryCatch_(self, f, onThrow, __trace) {
  return chain_(self, (a) => tryCatch(() => f(a), onThrow, __trace))
}
/**
 * Returns an effect whose success is mapped by the specified side effecting
 * `f` function, translating any thrown exceptions into typed failed effects.
 *
 * @dataFirst mapTryCatch_
 */

export function mapTryCatch(f, onThrow, __trace) {
  return (self) => mapTryCatch_(self, f, onThrow, __trace)
}
//# sourceMappingURL=mapTryCatch.js.map
