zio.magic.macros.graph.Node.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-magic-macros_2.13 Show documentation
Show all versions of zio-magic-macros_2.13 Show documentation
Magically construct ZLayers at compile-time (with friendly errors)
The newest version!
package zio.magic.macros.graph
case class Node[+Key, +A](inputs: List[Key], outputs: List[Key], value: A) {
def map[B](f: A => B): Node[Key, B] = copy(value = f(value))
}