Unions

zio.blocks.combinators.Unions
object Unions

Union operations: combining values into flat union types and separating them.

The Unions module provides a unified typeclass Unions[L, R] that both combines an Either[L, R] into a union type L | R and separates it back.

Attributes

Source
Unions.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Unions.type

Members list

Type members

Classlikes

object Unions

Attributes

Companion
trait
Source
Unions.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Unions.type
trait Unions[L, R]

Attributes

Companion
object
Source
Unions.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def combine[L, R](either: Either[L, R])(using u: Unions[L, R]): u.Out

Attributes

Source
Unions.scala