АР
Size: a a a
KS
ᛒ
АР
GP
R
ᛒ
ᛒ
P
val a: RIO[Blocking, A] = ???
val optB: Option[B] = ???
def foo: (A, B) => RIO[Blocking with Console, A] = ???
val oleg: RIO[Blocking with Console, A] = for {
a <- a
b <- ZIO.fromOption(optB).orElseFail(new Throwable("pizdec za chto"))
res <- foo(a, b)
} yield res
KS
P
AG
P
A
, may fail with Throwable
, requires an R
.ᛒ
GP