File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
scala2-library-cc/src/scala/collection Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -296,21 +296,12 @@ object IterableFactory {
296296 }
297297}
298298
299- // !!! Needed to add this separate trait
300- // trait FreeSeqFactory[+CC[A]] extends IterableFactory[CC]:
301- // def from[A](source: IterableOnce[A]^): CC[A]
302- // override def apply[A](elems: A*): CC[A]
303-
304- // type FreeSeqFactory[+CC[A] <: SeqOps[A, Seq, Seq[A]]] = SeqFactory[CC]
305-
306299/**
307300 * @tparam CC Collection type constructor (e.g. `List`)
308301 */
309302trait SeqFactory [+ CC [A ] <: SeqOps [A , Seq , Seq [A ]]] extends IterableFactory [CC ] {
310303 import SeqFactory .UnapplySeqWrapper
311304 final def unapplySeq [A ](x : CC [A ] @ uncheckedVariance): UnapplySeqWrapper [A ] = new UnapplySeqWrapper (x) // TODO is uncheckedVariance sound here?
312- def from [A ](source : IterableOnce [A ]^ ): CC [A ]
313- override def apply [A ](elems : A * ): CC [A ] = from(elems)
314305}
315306
316307object SeqFactory {
You can’t perform that action at this time.
0 commit comments