Go Slices: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:


A ''slice'' is a reference type that implements a ''dynamic array''.
A ''slice'' is a reference type that implements a ''dynamic array''.
Slice built-in functions <tt>[[Go Built-In Functions Appending to and Copying Slices#append.28.29|append()]]</tt>, <tt>[[Go Built-In Functions Appending to and Copying Slices#copy.28.29|copy()]]</tt>.


<font color=red>'''TODO''' Deep difference between slice and array (memory model, etc.)</font>
<font color=red>'''TODO''' Deep difference between slice and array (memory model, etc.)</font>
Line 15: Line 13:


=Slice Operators and Functions=
=Slice Operators and Functions=
Slice built-in functions <tt>[[Go Built-In Functions Appending to and Copying Slices#append.28.29|append()]]</tt>, <tt>[[Go Built-In Functions Appending to and Copying Slices#copy.28.29|copy()]]</tt>.

Revision as of 23:12, 27 March 2016

Internal

Overview

A slice is a reference type that implements a dynamic array.

TODO Deep difference between slice and array (memory model, etc.)

Slice Literals

Slice Operators and Functions

Slice built-in functions append(), copy().