src/Pure/General/scan.scala
changeset 73357 31d4274f32de
parent 73340 0ffcad1f6130
child 73359 d8a0e996614b
--- a/src/Pure/General/scan.scala	Wed Mar 03 22:28:03 2021 +0100
+++ b/src/Pure/General/scan.scala	Wed Mar 03 22:31:11 2021 +0100
@@ -8,7 +8,7 @@
 
 
 import scala.annotation.tailrec
-import scala.collection.{IndexedSeq, Traversable, TraversableOnce}
+import scala.collection.IndexedSeq
 import scala.util.matching.Regex
 import scala.util.parsing.input.{OffsetPosition, Position => InputPosition,
   Reader, CharSequenceReader, PagedSeq}
@@ -390,14 +390,14 @@
         new Lexicon(extend(rep, 0))
       }
 
-    def ++ (elems: TraversableOnce[String]): Lexicon = (this /: elems)(_ + _)
+    def ++ (elems: IterableOnce[String]): Lexicon = (this /: elems)(_ + _)
 
     def ++ (other: Lexicon): Lexicon =
       if (this eq other) this
       else if (is_empty) other
       else this ++ other.raw_iterator
 
-    def -- (remove: Traversable[String]): Lexicon =
+    def -- (remove: Iterable[String]): Lexicon =
       if (remove.exists(contains))
         Lexicon.empty ++ iterator.filterNot(a => remove.exists(b => a == b))
       else this