Skip to content

Update Maps.scala - corrections to unary '-' using tuple which is deprecated in Scala 2.13.0#145

Open
coderbalak wants to merge 1 commit intoscala-exercises:mainfrom
coderbalak:patch-1
Open

Update Maps.scala - corrections to unary '-' using tuple which is deprecated in Scala 2.13.0#145
coderbalak wants to merge 1 commit intoscala-exercises:mainfrom
coderbalak:patch-1

Conversation

@coderbalak
Copy link
Copy Markdown

scala> myMap - ("MI", "IA")
^
warning: method - in trait MapOps is deprecated (since 2.13.0): Use -- with an explicit collection
res1: scala.collection.immutable.Map[String,String] = Map(OH -> Ohio, WI -> Wisconsin)

scala> myMap - ("MI", "IA")
             ^
       warning: method - in trait MapOps is deprecated (since 2.13.0): Use -- with an explicit collection
res1: scala.collection.immutable.Map[String,String] = Map(OH -> Ohio, WI -> Wisconsin)
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.

1 participant