You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title, the method toMap() throws an exception by default when the keys are the same, whether to overload method toMap() by a merge function, used to resolve collisions between values associated with the same key.
The version i used is 0.9.12.
The text was updated successfully, but these errors were encountered:
I see, we could offer this, because Collector also offers a version that has a BinaryOperator<U> mergeFunction, and our own Collectable.toMap() methods are merely convenience for the Collector version.
Of course, the workaround is to use the Collector API from the JDK
lukaseder
changed the title
Issue:overload method toMap()
Add Seq.toMap() with mergeFunction
Jul 20, 2020
As the title, the method toMap() throws an exception by default when the keys are the same, whether to overload method toMap() by a merge function, used to resolve collisions between values associated with the same key.
The version i used is 0.9.12.
The text was updated successfully, but these errors were encountered: