map<W> method
Implementation
AsyncEitherExtended<L, W> map<W>(Future<W> Function(R r) fn) {
return then(
(result) => result
.map(fn)
.fold((l) => LeftExtended(l), (r) async => RightExtended(await r)),
);
}
AsyncEitherExtended<L, W> map<W>(Future<W> Function(R r) fn) {
return then(
(result) => result
.map(fn)
.fold((l) => LeftExtended(l), (r) async => RightExtended(await r)),
);
}