(self: These<E, A0>, f: (a: A0) => A)
| 57 | } |
| 58 | |
| 59 | export function map_<E, A0, A>(self: These<E, A0>, f: (a: A0) => A) { |
| 60 | return foldM_( |
| 61 | self, |
| 62 | (a) => succeed(f(a)), |
| 63 | (a, e) => warn(f(a), e), |
| 64 | fail, |
| 65 | ) |
| 66 | } |
| 67 | |
| 68 | export function map<A0, A>(f: (a: A0) => A) { |
| 69 | return <E>(self: These<E, A0>) => map_(self, f) |