Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
e99f68f0
Commit
e99f68f0
authored
Nov 09, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builtin: document delete
Fixes #2434. R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5370045
parent
7a6a9755
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
src/pkg/builtin/builtin.go
src/pkg/builtin/builtin.go
+11
-1
No files found.
src/pkg/builtin/builtin.go
View file @
e99f68f0
...
...
@@ -91,6 +91,11 @@ type rune rune
// invocation.
type
Type
int
// Type1 is here for the purposes of documentation only. It is a stand-in
// for any Go type, but represents the same type for any given function
// invocation.
type
Type1
int
// IntegerType is here for the purposes of documentation only. It is a stand-in
// for any integer type: int, uint, int8 etc.
type
IntegerType
int
...
...
@@ -119,6 +124,11 @@ func append(slice []Type, elems ...Type) []Type
// len(src) and len(dst).
func
copy
(
dst
,
src
[]
Type
)
int
// The delete built-in function deletes the element with the specified key
// (m[key]) from the map. If there is no such element, delete is a no-op.
// If m is nil, delete panics.
func
delete
(
m
map
[
Type
]
Type1
,
key
Type
)
// The len built-in function returns the length of v, according to its type:
// Array: the number of elements in v.
// Pointer to array: the number of elements in *v (even if v is nil).
...
...
@@ -171,7 +181,7 @@ func complex(r, i FloatType) ComplexType
// The return value will be floating point type corresponding to the type of c.
func
real
(
c
ComplexType
)
FloatType
// The imag
inary
built-in function returns the imaginary part of the complex
// The imag built-in function returns the imaginary part of the complex
// number c. The return value will be floating point type corresponding to
// the type of c.
func
imag
(
c
ComplexType
)
FloatType
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment