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 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|list}}
 
{{command|list}}
 
;Reverse[ <List> ]:Reverses the order of a [[Lists|list]].
 
;Reverse[ <List> ]:Reverses the order of a [[Lists|list]].

Revision as of 22:23, 9 March 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.
Examples:
Reverse[li1] reverses the list:
li1={(a, b), (c, d), (e, f)} creating the list:
{(e, f), (c,d),(a, b)}
Reverse[Flatten[ {á, é, {í, ó} } ]] reverses the flatten list and creates the list {ó, í, é, á}.
© 2024 International GeoGebra Institute