harness.deriving.Utils.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of harness-deriving_3 Show documentation
Show all versions of harness-deriving_3 Show documentation
Miscellaneous libraries/utilities for Scala.
The newest version!
package harness.deriving
import scala.compiletime.*
object Utils {
inline def summonList[T <: Tuple, E]: List[E] =
inline erasedValue[T] match
case _: EmptyTuple => Nil
case _: (a *: b) =>
constValue[a & E] :: summonList[b, E]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy