Difference between revisions of "Join Command"
From GeoGebra Manual
m (1 revision: tt => code) |
(command syntax: changed [ ] into ( )) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|list}} |
− | {{command|list}} | + | ;Join( <List>, <List>, ... ) |
− | ; Join | + | :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.}} | + | :{{Note|1=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| <code>Join | + | :{{Example|1=<div><code>Join({5, 4, 3}, {1, 2, 3})</code> creates the list ''{5, 4, 3, 1, 2, 3}''.</div>}} |
− | ; Join | + | ;Join( <List of 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.}} | + | :Joins the sub-lists into one longer list. |
− | :{{ | + | :{{Note|1=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.}} |
− | :* <code><nowiki>Join | + | :{{Examples|1=<br/> |
− | :* <code>Join | + | :*<code><nowiki>Join({{1, 2}})</nowiki></code> creates the list ''{1, 2}''. |
+ | :*<code>Join({{1, 2, 3}, {3, 4}, {8, 7}})</code> creates the list ''{1, 2, 3, 3, 4, 8, 7}''.}} |
Latest revision as of 11:21, 6 October 2017
- Join( <List>, <List>, ... )
- 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}.