Skip to content

Fix MultiSet#toString and MultiDict#toString #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2019

Conversation

joshlemer
Copy link
Contributor

Currently:

scala> import scala.collection.immutable._
import scala.collection.immutable._

scala> MultiDict()
res0: scala.collection.immutable.MultiDict[Nothing,Nothing] = Iterable()

scala> MultiDict(1 -> 1, 1 -> 2, 2 -> 2)
res1: scala.collection.immutable.MultiDict[Int,Int] = Iterable((1,1), (1,2), (2,2))

scala> MultiSet()
res2: scala.collection.immutable.MultiSet[Nothing] = Iterable()

scala> MultiSet(1,1,1,2,2)

With this PR:

scala> import scala.collection.immutable._
import scala.collection.immutable._

scala> MultiDict()
res0: scala.collection.immutable.MultiDict[Nothing,Nothing] = MultiDict()

scala> MultiDict(1 -> 1, 1 -> 2, 2 -> 2)
res1: scala.collection.immutable.MultiDict[Int,Int] = MultiDict(1 -> 1, 1 -> 2, 2 -> 2)

scala> MultiSet()
res2: scala.collection.immutable.MultiSet[Nothing] = MultiSet()

scala> MultiSet(1,1,1,2,2)
res3: scala.collection.immutable.MultiSet[Int] = MultiSet(1, 1, 1, 2, 2)

@joshlemer joshlemer force-pushed the multiset-multidict-tostring branch from cb71e3d to 386b60d Compare May 5, 2019 16:34
@joshlemer joshlemer merged commit 4a70ff1 into scala:master May 5, 2019
@joshlemer joshlemer deleted the multiset-multidict-tostring branch May 5, 2019 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants