/** * @tsplus pipeable fp-ts/data/Either mapBoth */ export function mapBoth(onLeft: (e: E) => EA, onRight: (a: A) => AA) { return (ei: Either) => ei.mapLeft(onLeft).map(onRight) }