Difference between revisions of "Flatten Command"
From GeoGebra Manual
Line 2: | Line 2: | ||
{{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><nowiki>Flatten[{2, 3, {5, 1}, {{2, 1, {3}}}}]</nowiki></code> gives you '''{''2, 3, 5, 1, 2, 1, 3''}'''. |
Revision as of 02:20, 5 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}.