Skip to content
Snippets Groups Projects
Commit 917954e4 authored by Utkarsh Upadhyay's avatar Utkarsh Upadhyay
Browse files

Added a set example which is successfully parsed.

(No cardinality extraction, though.)

parent 0f8ef3d9
No related branches found
No related tags found
No related merge requests found
import scala.collection.immutable.Set
// Cardinalities not supported yet.
// Pre/Post conditions commented out.
object SetOperations {
def add(a: Set[Int], b: Int) : Set[Int] = {
// require(a.size >= 0)
a + b
} // ensuring((x:Set[Int]) => x.size == a.size + 1)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment