Pinned Loading
-
Naive Reader
Naive Reader 1case class Fun[A, B](run: A => B) {
2def map[C](f: B => C): Fun[A, C] = Fun(a => f(run(a)))
3def flatMap[C](f: B => Fun[A, C]): Fun[A, C] =
4Fun(a => f(run(a)).run(a))
5}
-
ZIO environment usage
ZIO environment usage 1// simple programm to show how to use ZIO and to show which opportunities it can bring
2import zio._
34// trait to describe Config
5trait HasConfig {
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.