Scala shapeless KList with extra constraint
问题 I want to take this pattern: def accept[T](a: RList[T]) = true def accept[T, V](a: RList[T], b: RList[V])(implicit ev: a.S =:= b.S) = true def accept[T, V, Q](a: RList[T], b: RList[V], c: RList[Q])(implicit ev: a.S =:= b.S, ev2: b.S =:= c.S) = true but have it accept a KList , instead of manually overriding for all arities. Basically I want to say, "Take any number of RList s, that have the same S member type" RList is a trait, that contains a type S . (For more background on an RList and why