Tuple2

h8io.stages.projections.Tuple2
object Tuple2

Stage projections for Scala's standard scala.Tuple2 type.

Each projection extracts one element of a pair (A, B) and always yields h8io.stages.Yield.Some with h8io.stages.Status.Success, because a tuple always has both elements.

Example:

val fstStage = Tuple2.Left[String]   // Stage[(String, Any), String, Nothing]
val sndStage = Tuple2.Right[Int]     // Stage[(Any, Int), Int, Nothing]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Tuple2.type

Members list

Type members

Classlikes

object Left extends LeftProjection[Tuple2]

Extracts the first element (_1) of a (A, B) pair.

Extracts the first element (_1) of a (A, B) pair.

Use Tuple2.Left[T] to get a typed Projection[(T, Any), T].

Attributes

Supertypes
trait LeftProjection[Tuple2]
trait Projection[(Any, Any), Any]
trait StaticStage[(Any, Any), Any, Nothing]
trait SAMStage[(Any, Any), Any, Nothing]
trait Stagnation[(Any, Any), Any, Nothing]
trait Evolution[(Any, Any), Any, Nothing]
trait Stage[(Any, Any), Any, Nothing]
trait ((Any, Any)) => Yield[(Any, Any), Any, Nothing]
class Object
trait Matchable
class Any
Show all
Self type
Left.type
object Right extends RightProjection[Tuple2]

Extracts the second element (_2) of a (A, B) pair.

Extracts the second element (_2) of a (A, B) pair.

Use Tuple2.Right[T] to get a typed Projection[(Any, T), T].

Attributes

Supertypes
trait RightProjection[Tuple2]
trait Projection[(Any, Any), Any]
trait StaticStage[(Any, Any), Any, Nothing]
trait SAMStage[(Any, Any), Any, Nothing]
trait Stagnation[(Any, Any), Any, Nothing]
trait Evolution[(Any, Any), Any, Nothing]
trait Stage[(Any, Any), Any, Nothing]
trait ((Any, Any)) => Yield[(Any, Any), Any, Nothing]
class Object
trait Matchable
class Any
Show all
Self type
Right.type