File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ permalink: /overviews/quasiquotes/:title.html
120
120
| Quasiquote | Type
121
121
------------------------------|-----------------------------------------------------------------------------------------------------------------------------|-----------
122
122
[ Val] [ 401 ] | ` q"$mods val $tname: $tpt = $expr" ` or ` q"$mods val $pat = $expr" ` | ValDef
123
- [ Var] [ 401 ] | ` q"$mods var $tname: $tpt = $expr" ` or ` q"$mods val $pat = $expr" ` | ValDef
123
+ [ Var] [ 401 ] | ` q"$mods var $tname: $tpt = $expr" ` or ` q"$mods var $pat = $expr" ` | ValDef
124
124
[ Val Pattern] [ 403 ] | ` q"$mods val $pat: $tpt = $expr" ` | Tree
125
125
[ Var Pattern] [ 404 ] | ` q"$mods var $pat: $tpt = $expr" ` | Tree
126
126
[ Method] [ 403 ] | ` q"$mods def $tname[..$tparams](...$paramss): $tpt = $expr" ` | DefDef
Original file line number Diff line number Diff line change @@ -83,18 +83,18 @@ Here are some things you can do with a mutable `Map`:
83
83
``` scala
84
84
// add elements with +=
85
85
states += (" AZ" -> " Arizona" )
86
- states += (" CO" -> " Colorado" , " KY" -> " Kentucky" )
86
+ states ++= Map (" CO" -> " Colorado" , " KY" -> " Kentucky" )
87
87
88
88
// remove elements with -=
89
89
states -= " KY"
90
- states -= (" AZ" , " CO" )
90
+ states --= List (" AZ" , " CO" )
91
91
92
92
// update elements by reassigning them
93
93
states(" AK" ) = " Alaska, The Big State"
94
94
95
- // retain elements by supplying a function that operates on
95
+ // filter elements by supplying a function that operates on
96
96
// the keys and/or values
97
- states.retain ((k,v) => k == " AK" )
97
+ states.filterInPlace ((k,v) => k == " AK" )
98
98
```
99
99
100
100
You can’t perform that action at this time.
0 commit comments