File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -98,25 +98,25 @@ object Tuple {
98
98
transparent val $MaxSpecialized = 22
99
99
transparent private val XXL = $MaxSpecialized + 1
100
100
101
- type Head [X <: NonEmptyTuple ] = X match {
101
+ type Head [+ X <: NonEmptyTuple ] = X match {
102
102
case x *: _ => x
103
103
}
104
104
105
- type Tail [X <: NonEmptyTuple ] <: Tuple = X match {
105
+ type Tail [+ X <: NonEmptyTuple ] <: Tuple = X match {
106
106
case _ *: xs => xs
107
107
}
108
108
109
- type Concat [X <: Tuple , Y <: Tuple ] <: Tuple = X match {
109
+ type Concat [+ X <: Tuple , + Y <: Tuple ] <: Tuple = X match {
110
110
case Unit => Y
111
111
case x1 *: xs1 => x1 *: Concat [xs1, Y ]
112
112
}
113
113
114
- type Elem [X <: Tuple , N ] = (X , N ) match {
114
+ type Elem [+ X <: Tuple , + N ] = (X , N ) match {
115
115
case (x *: xs, 0 ) => x
116
116
case (x *: xs, S [n1]) => Elem [xs, n1]
117
117
}
118
118
119
- type Size [X ] <: Int = X match {
119
+ type Size [+ X ] <: Int = X match {
120
120
case Unit => 0
121
121
case x *: xs => S [Size [xs]]
122
122
}
You can’t perform that action at this time.
0 commit comments