Difference between revisions of "Last Command"
From GeoGebra Manual
(added v4 - needs descriptions) |
|||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | <noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | ||
{{command|list}} | {{command|list}} | ||
− | ; Last[List]: Returns the last element of the list. | + | ; Last[List L]: Returns list containing the last element of the list L. |
− | ; Last[List, Number n of Elements]: Returns a list containing just the last ''n'' elements of the list. | + | ; Last[List L, Number n of Elements]: Returns a list containing just the last ''n'' elements of the list L. |
;Last[Text] | ;Last[Text] | ||
− | + | Returns last character of the text. | |
; Last[Text, Number n of Elements] | ; Last[Text, Number n of Elements] | ||
− | {{ | + | Returns the last ''n'' characters of the text. |
+ | {{Example|1=<code>Last["Hello",2]</code> returns "lo".}} |
Revision as of 14:31, 23 March 2011
- Last[List L]
- Returns list containing the last element of the list L.
- Last[List L, Number n of Elements]
- Returns a list containing just the last n elements of the list L.
- Last[Text]
Returns last character of the text.
- Last[Text, Number n of Elements]
Returns the last n characters of the text.
Example:
Last["Hello",2]
returns "lo".