Difference between revisions of "Reverse 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 5: Line 5:
 
==CAS Syntax==
 
==CAS Syntax==
 
;Reverse[ <List> ]:Reverses the order of a [[Lists|list]].
 
;Reverse[ <List> ]:Reverses the order of a [[Lists|list]].
:{{Examples|1=<br><code>Reverse[li<sub>1</sub>]</code> reverses the [[Lists|list]]:<br>''li<sub>1</sub>={(a, b), (c, d), (e, f)}'' creating the list:<br>''{(e, f), (c,d),(a, b)}''<br><code><nowiki>Reverse[Flatten[  {á, é, {í, ó} }  ]]</nowiki></code> reverses the [[Flatten Command|flatten]] list and creates the list ''{ó, í, é, á}''.
+
:{{example|1=<br><code><nowiki>Reverse[list1]</nowiki></code> reverses <code>list1={(1,2),(3,4),(5,6)}</code> to create <code>list2={(5,6), (3,4), (1,2)} </code>}}
}}
 

Revision as of 11:52, 18 July 2013



Reverse[ <List> ]
Reverses the order of a list.
Example:
Reverse[list1] reverses list1={(1,2),(3,4),(5,6)} to create list2={(5,6), (3,4), (1,2)}

CAS Syntax

Reverse[ <List> ]
Reverses the order of a list.
Example:
Reverse[list1] reverses list1={(1,2),(3,4),(5,6)} to create list2={(5,6), (3,4), (1,2)}
© 2024 International GeoGebra Institute