progs/app02.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Fri, 25 Sep 2015 17:39:02 +0100
changeset 331 a2c18456c6b7
parent 287 2c50b8b5886c
child 356 d9c784c71305
permissions -rw-r--r--
updated

abstract class Val
case object Empty extends Val
case class Char(c: Char) extends Val
case class Seq(v1: Val, v2: Val) extends Val
case class Left(v: Val) extends Val
case class Right(v: Val) extends Val
case class Stars(vs: List[Val]) extends Val