Skip to content
Snippets Groups Projects
Commit cdab1dac authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Add map definition

parent d9e04cf6
No related branches found
No related tags found
No related merge requests found
package leon.lang
import leon.annotation._
object Map {
def empty[A,B] = Map[A,B]()
}
@ignore
case class Map[A, B](elems: (A, B)*) {
def apply(k: A): B = ???
def ++(b: Map[A, B]): Map[A,B] = ???
def updated(k: A, v: B): Map[A,B] = ???
def contains(a: A): Boolean = ???
def isDefinedAt(a: A): Boolean = contains(a)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment