Skip to content
Snippets Groups Projects
Commit 51c28886 authored by Matt Bovel's avatar Matt Bovel
Browse files

Create ex02-01-parseq.worksheet.sc

parent b2293165
No related branches found
No related tags found
No related merge requests found
import scala.collection.parallel.immutable.ParVector
import collection.parallel.CollectionConverters.*
import collection.parallel.{ParSeq, ParSet}
val l = List(1,2,3)
val l2: ParSeq[Int] = l.par
// Calling toSet on a ParSeq returns ParSet:
val l3: ParSet[Int] = l2.toSet
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment