【发布时间】:2017-01-01 18:04:13
【问题描述】:
如标题所述。
使用EitherT[Future, A, B] 完成了许多操作。有时我想通过另一个具有签名A => Future[C] 的操作向左或向右映射。其他情况是EitherT[Future, A, B] 是对未来结果Future[EitherT[Future, A, B]] 的映射结果。
我怎样才能优雅地展平类型:
EitherT[Future, Future[A], Future[B]] 和 Future[EitherT[Future, A, B]]
提前谢谢你。
【问题讨论】: