author | wenzelm |
Tue, 03 Dec 2019 15:59:01 +0100 | |
changeset 71221 | 4dfb7c937126 |
parent 71219 | 35e465677a26 |
child 71222 | 2bc39c80a95d |
--- a/src/Pure/term.scala Tue Dec 03 15:20:30 2019 +0100 +++ b/src/Pure/term.scala Tue Dec 03 15:59:01 2019 +0100 @@ -53,6 +53,13 @@ val dummyT = Type("dummy") sealed abstract class Term + { + def head: Term = + this match { + case App(fun, _) => fun.head + case _ => this + } + } case class Const(name: String, typargs: List[Typ] = Nil) extends Term { override def toString: String =