Skip to content
Snippets Groups Projects
Commit 1fc14043 authored by Viktor Kuncak's avatar Viktor Kuncak
Browse files

forgot to uncomment example

parent c2f832d1
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,6 @@ import scala.collection.immutable.Multiset ...@@ -3,7 +3,6 @@ import scala.collection.immutable.Multiset
object MultisetOperations { object MultisetOperations {
/*
def disjointUnion1(a: Multiset[Int], b: Multiset[Int]) : Multiset[Int] = { def disjointUnion1(a: Multiset[Int], b: Multiset[Int]) : Multiset[Int] = {
a +++ b a +++ b
} ensuring(res => res.size == a.size + b.size) } ensuring(res => res.size == a.size + b.size)
...@@ -15,6 +14,5 @@ object MultisetOperations { ...@@ -15,6 +14,5 @@ object MultisetOperations {
def preservedUnderToSet2(a: Multiset[Int], b: Multiset[Int]) : Multiset[Int] = { def preservedUnderToSet2(a: Multiset[Int], b: Multiset[Int]) : Multiset[Int] = {
a ** b a ** b
} ensuring(res => res.toSet == a.toSet ** b.toSet) } ensuring(res => res.toSet == a.toSet ** b.toSet)
*/
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment