如何将Set("a","b","c")转换为Map("a" - > 1,"b" - > 2,"c" - > 3)?我认为它应该与toMap一起使用.
scala scala-collections
scala ×1
scala-collections ×1