Difference between revisions of "Join 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 )
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|list}}
 
{{command|list}}
 
;Join[ <List 1>, <List 2>, ... ]:Joins the two (or more) lists.
 
;Join[ <List 1>, <List 2>, ... ]:Joins the two (or more) lists.

Revision as of 22:14, 9 March 2013



Join[ <List 1>, <List 2>, ... ]
Joins the two (or more) lists.
Note: The new list contains all elements of the initial lists even if they are the same. The elements of the new list are not re-ordered.
Example: Join[{5, 4, 3}, {1, 2, 3}] creates the list {5, 4, 3, 1, 2, 3}.


Join[ <List of lists> ]
Joins the sub-lists into one longer list.
Note: The new list contains all elements of the initial lists even if they are the same. The elements of the new list are not re-ordered.
Examples:
  • Join[{{1, 2}}] creates the list {1, 2}.
  • Join[{{1, 2, 3}, {3, 4}, {8, 7}}] creates the list {1, 2, 3, 3, 4, 8, 7}.
© 2024 International GeoGebra Institute