All Downloads are FREE. Search and download functionalities are using the official Maven repository.

harness.deriving.Utils.scala Maven / Gradle / Ivy

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