Skip to content
Snippets Groups Projects
Commit 639e8fe2 authored by Giuliano Losa's avatar Giuliano Losa
Browse files

crash

parent bbbfc12c
No related branches found
No related tags found
No related merge requests found
import scala.collection.immutable.Set
object Giuliano {
sealed abstract class List
case class Cons(head: Int, tail: List) extends List
case class Nil() extends List
def form1(x: Cons, y: Set[Int]) : Boolean = {
y.contains(x.head) && y.size == x.head
} ensuring(_ == true)
}
// vim: set ts=4 sw=4 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment