Scala mapValues stepping on the pit: use the mapValues of Scala Map with caution, you may need to transform

We can see that the mapValues ​​method has been marked as obsolete in the latest version of scala 2.13.1

And the return value of the method also changed from Map to MapView

Please refer to this article for detailed pit tread records: https://blog.csdn.net/bluishglc/article/details/80156218 

Published 1792 original articles · 1135 praises · 960,000 views

Guess you like

Origin blog.csdn.net/a772304419/article/details/105577976