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 Function append|append()]]</tt>, <tt>[[go Built-In Function copy|copy()]]</tt>.
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>

Revision as of 19:07, 22 March 2016

Internal

Overview

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

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

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


Slice Literals