We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb5be7 commit f98f790Copy full SHA for f98f790
common/src/main/scala/io/kjaer/compiletime/Indices.scala
@@ -10,10 +10,11 @@ sealed trait Indices {
10
def :::[H <: Index, This >: this.type <: Indices](head: H): H ::: This =
11
io.kjaer.compiletime.:::(head, this)
12
13
- def indices: Set[Int] = this match {
14
- case head ::: tail => tail.indices + head
15
- case INil => Set.empty
+ def indices: Seq[Int] = this match {
+ case INil => Nil
+ case head ::: tail => head +: tail.indices
16
}
17
+
18
19
20
final case class :::[H <: Index, T <: Indices](head: H, tail: T) extends Indices {
0 commit comments