mirror of
https://github.com/golang/go
synced 2024-11-25 00:57:59 -07:00
go spec: for map types, mention indexing operations
(like we do for arrays and slices). Suggested by mathieu.lonjaret@gmail.com . R=r, rsc, iant CC=golang-dev https://golang.org/cl/4442074
This commit is contained in:
parent
d911b872ce
commit
1bdb1803b9
@ -1,5 +1,5 @@
|
||||
<!-- title The Go Programming Language Specification -->
|
||||
<!-- subtitle Version of Apr 19, 2011 -->
|
||||
<!-- subtitle Version of Apr 22, 2011 -->
|
||||
|
||||
<!--
|
||||
TODO
|
||||
@ -1155,8 +1155,9 @@ map [string] interface {}
|
||||
The number of map elements is called its length.
|
||||
For a map <code>m</code>, it can be discovered using the
|
||||
built-in function <a href="#Length_and_capacity"><code>len(m)</code></a>
|
||||
and may change during execution. Values may be added and removed
|
||||
during execution using special forms of <a href="#Assignments">assignment</a>.
|
||||
and may change during execution. Elements may be added and removed
|
||||
during execution using special forms of <a href="#Assignments">assignment</a>;
|
||||
and they may be accessed with <a href="#Indexes">index</a> expressions.
|
||||
</p>
|
||||
<p>
|
||||
A new, empty map value is made using the built-in
|
||||
|
Loading…
Reference in New Issue
Block a user