Difference between revisions of "Flatten Command"
From GeoGebra Manual
(Created page with "<noinclude>{{Manual Page|version=4.0}}</noinclude> {{command|list}} ; Flatten[ <list> ]: Flattens the list. {{Example|1=<code>Flatten[{2, 3, {5, 1}, {{2, 1, {3}}}}]</code> give...") |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=4. | + | <noinclude>{{Manual Page|version=4.2}}</noinclude> |
{{command|list}} | {{command|list}} | ||
; Flatten[ <list> ]: Flattens the list. | ; Flatten[ <list> ]: Flattens the list. | ||
{{Example|1=<code>Flatten[{2, 3, {5, 1}, {{2, 1, {3}}}}]</code> gives you '''{''2, 3, 5, 1, 2, 1, 3''}'''. | {{Example|1=<code>Flatten[{2, 3, {5, 1}, {{2, 1, {3}}}}]</code> gives you '''{''2, 3, 5, 1, 2, 1, 3''}'''. |
Revision as of 06:20, 1 February 2012
- Flatten[ <list> ]
- Flattens the list.
{{Example|1=Flatten[{2, 3, {5, 1}, {{2, 1, {3}}}}]
gives you {2, 3, 5, 1, 2, 1, 3}.