Difference between revisions of "Flatten Command"

From GeoGebra Manual
Jump to: navigation, search
m (Bot: Automated text replacement (-{{betamanual|version=4.2}} + ))
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>  
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>  
 
{{command|list}}
 
{{command|list}}
; Flatten[ <List of Lists> ]: Flattens the  list.
+
; Flatten[ <List> ]: Flattens lists to one list.
:{{Example|1=<code><nowiki>Flatten[{2, 3, {5, 1}, {{2, 1, {3}}}}]</nowiki></code> gives you  '''{''2, 3, 5, 1, 2, 1, 3''}'''.}}
+
:{{Example|1=<code><nowiki>Flatten[{2, 3, {5, 1}, {{2, 1, {3}}}}]</nowiki></code> yields ''list1 = {2, 3, 5, 1, 2, 1, 3}''.}}

Revision as of 12:49, 11 July 2013

© 2024 International GeoGebra Institute