Added blank identifier explanation to maps
This commit is contained in:
parent
75f7fb9039
commit
cb34420198
@ -159,7 +159,10 @@ a map.</p>
|
||||
|
||||
<tr>
|
||||
<td class="docs">
|
||||
<p>The optional second return value when getting a
|
||||
<p> Above we didn’t
|
||||
need the index, so we ignored it with the
|
||||
<em>blank identifier</em> <code>_</code>.
|
||||
The optional second return value when getting a
|
||||
value from a map indicates if the key was present
|
||||
in the map. This can be used to disambiguate
|
||||
between missing keys and keys with zero values
|
||||
|
Loading…
x
Reference in New Issue
Block a user