This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import :=:.Refl | |
| import Type.* | |
| import TypeRepr.* | |
| import scala.annotation.tailrec | |
| enum :=:[A, B]: | |
| case Refl[E]() extends :=:[E, E] | |
| enum Type: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import TList.{TCons, TNil} | |
| import scala.annotation.targetName | |
| enum TList[A]: | |
| case TNil[A]() extends TList[A] | |
| case TCons[A, X <: A, T <: TList[A]](x: X, t: T) extends TList[A] | |
| sealed trait Elem[A, X, XS <: TList[A]]: | |
| def get(l: XS): X |
OlderNewer