Skip to content

Commit 848c945

Browse files
committed
Memoize IterableOnce source on first View traversal
This allows us to get rid of `IterableFactoryLike` and still define `View.from` in a reasonable way.
1 parent bc2e558 commit 848c945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/strawman/collection/mutable/SortedMultiDict.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SortedMultiDict[K, V] private (elems: SortedMap[K, Set[V]])(implicit val o
1717

1818
def sets: collection.SortedMap[K, collection.Set[V]] = elems
1919

20-
def iterableFactory: IterableFactoryLike[collection.Iterable] = collection.Iterable
20+
def iterableFactory: IterableFactory[collection.Iterable] = collection.Iterable
2121
def sortedMultiMapFactory: SortedMapFactory[SortedMultiDict] = SortedMultiDict
2222

2323
protected[this] def fromSpecificIterable(coll: collection.Iterable[(K, V)]): SortedMultiDict[K, V] = sortedMultiMapFactory.from(coll)

0 commit comments

Comments
 (0)