TupleIndex

com.github.rssh.appcontext.TupleIndex
opaque object TupleIndex

Attributes

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

Members list

Type members

Types

opaque type OfSubtype[Xs <: Tuple, T, N <: Int]

Attributes

Source
TupleIndex.scala

Givens

Givens

inline given nextOfSubtype[XsH, XsT <: NonEmptyTuple, T, N <: Int](using idx: OfSubtype[XsT, T, N]): OfSubtype[XsH *: XsT, T, S[N]]

Attributes

Source
TupleIndex.scala
inline given zeroOfSubtype[XsH, XsT <: Tuple, T <: XsH]: OfSubtype[XsH *: XsT, T, 0]

Attributes

Source
TupleIndex.scala

Extensions

Extensions

extension [Xs <: Tuple, T, N <: Int](idx: OfSubtype[Xs, T, N])
def index: Int

Attributes

Source
TupleIndex.scala