Open fvilante opened 4 years ago
It seems that Scala's ZIO uses lazy construction. But I may be doing a wrong reading of Scala language. Check it when possible:
final def fromEither[E, A](v: => Either[E, A]): IO[E, A] =
effectTotal(v).flatMap(_.fold(fail, succeed))
Why not
instead of
?