diff -r 80c691a4caab -r 7a0735db4788 progs/lecture1.scala --- a/progs/lecture1.scala Thu Nov 10 20:10:20 2022 +0000 +++ b/progs/lecture1.scala Mon Nov 14 12:04:21 2022 +0000 @@ -436,6 +436,7 @@ // - no mutable data-structures (no Arrays, no ListBuffers) // But what the heck....lets try to count to 1 Mio in parallel +import scala.collection.parallel.CollectionConverters._ var cnt = 0 @@ -452,7 +453,7 @@ def count_intersection(A: Set[Int], B: Set[Int]) : Int = { var count = 0 - for (x <- A.par; if (B contains x)) count += 1 + for (x <- A; if (B contains x)) count += 1 count }