Difference between revisions of "Append Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(command syntax: changed [ ] into ( ))
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|list}}
{{command|list}}
+
;Append( &lt;List>, <Object> ):Appends the object to the list and yields the results in a new list.
;Append[ <List>, >Object> ]:Appends the object to the list.
+
:{{Example|1=<code>Append({1, 2, 3}, 4)</code> creates the list ''{1, 2, 3, 4}''.}}
:{{Example|1=<code>Append[{1, 2, 3}, 4]</code> creates the list ''{1, 2, 3, 4}''.}}
+
;Append( <Object>, &lt;List> ):Appends the list to the object and yields the results in a new list.
;Append[ <Object>, <List> ]:Appends the list to the object.
+
:{{Example|1=<code>Append(4, {1, 2, 3})</code> creates he list  ''{4, 1, 2, 3}''.}}
:{{Example|1=<code>Append[4, {1, 2, 3}]</code> creates he list  ''{4, 1, 2, 3}''.}}
 

Latest revision as of 11:08, 6 October 2017


Append( <List>, <Object> )
Appends the object to the list and yields the results in a new list.
Example: Append({1, 2, 3}, 4) creates the list {1, 2, 3, 4}.
Append( <Object>, <List> )
Appends the list to the object and yields the results in a new list.
Example: Append(4, {1, 2, 3}) creates he list {4, 1, 2, 3}.
© 2024 International GeoGebra Institute