zio.blocks.combinators
Members list
Type members
Classlikes
This object was generated by sbt-buildinfo.
This object was generated by sbt-buildinfo.
Attributes
- Source
- BuildInfo.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
BuildInfo.type
Attributes
- Companion
- trait
- Source
- Concat.scala
- Supertypes
- Self type
-
Concat.type
Typeclass describing the element type produced by sequential concatenation of values of type L and R.
Typeclass describing the element type produced by sequential concatenation of values of type L and R.
The derivation rules — implemented per platform — are:
- same type: keep that type;
- subtype + supertype: keep the supertype;
- siblings sharing a unique meaningful common supertype (e.g.
DogandCatextending sealedAnimal): keep that supertype (a supertype is ''meaningful'' when it is not a noise type such asAny,AnyRef,AnyVal,Object,Product, orSerializable); - otherwise: widen disjoint values into
Either[L, R]on Scala 2 (or produce the native unionL | Ron Scala 3).
Stream.concat uses isIdentityLike to decide whether it can reuse elements as-is or must wrap/project them through left and right.
Type parameters
- L
-
left element type
- R
-
right element type
Attributes
- Companion
- object
- Source
- Concat.scala
- Supertypes
Attributes
- Source
- Eithers.scala
- Supertypes
- Self type
-
Eithers.type
Attributes
- Source
- Tuples.scala
- Supertypes
- Self type
-
Tuples.type
Union operations: combining values into flat union types and separating them.
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
- Supertypes
- Self type
-
Unions.type