“Last 指令”的版本间的差异

来自GeoGebra Manual
跳转至: 导航搜索
(機器人:執行文字代換作業 (-{{command +{{command|cas=true))
(en)
 
第14行: 第14行:
 
;Last[ <List> , <Number of Elements> ]
 
;Last[ <List> , <Number of Elements> ]
 
:{{translate|Last Command}}
 
:{{translate|Last Command}}
 +
;Last[ <List L> ]
 +
:Gives a new list that contains the last element of the list ''L''.
 +
:{{example|1=<div><code><nowiki>Last[{1, 4, 3}]</nowiki></code> yields ''{3}''.</div>}}
 +
:{{note| 1=To get the last element use <code><nowiki>Element[{1, 4, 3}, 3]</nowiki></code>.}}
 +
;Last[ <List L>, <Number n of elements> ]
 +
:Gives a new list that contains just the last ''n'' elements of the list ''L''.
 +
:{{example|1=<div><code><nowiki>Last[{1, 4, 3}, 2]</nowiki></code> yields ''{4, 3}''.</div>}}
 +
;Last[ <Text> ]
 +
:Gives last character of the text.
 +
:{{example|1=<div><code><nowiki>Last["Hello"]</nowiki></code> yields ''"o"''.</div>}}
 +
;Last[ <Text> , <Number n of elements> ]
 +
:Gives the last ''n'' characters of the text.
 +
:{{example|1=<div><code><nowiki>Last["Hello",2]</nowiki></code> yields ''"lo"''.</div>}}
 +
==CAS Syntax==
 +
;Last[ <List L> ]
 +
:Gives a new list that contains the last element of the list ''L''.
 +
:{{example|1=<div><code><nowiki>Last[{1, 4, 3}]</nowiki></code> yields ''{3}''.</div>}}
 +
:{{note| 1=To get the last element use <code><nowiki>Element[{1, 4, 3}, 3]</nowiki></code>.}}
 +
;Last[ <List L>, <Number n of elements> ]
 +
:Gives a new list that contains just the last ''n'' elements of the list ''L''.
 +
:{{example|1=<div><code><nowiki>Last[{1, 4, 3}, 2]</nowiki></code> yields ''{4, 3}''.</div>}}
 +
{{note| 1=<div>See also [[First Command]].</div>}}

2011年10月3日 (一) 09:33的最新版本

Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


Last[ <List> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
Last[ <List> , <Number of Elements> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
Last[ <Text> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
Last[ <Text> , <Number of Elements> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊

CAS 視窗

Last[ <List> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
Last[ <List> , <Number of Elements> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
Last[ <List L> ]
Gives a new list that contains the last element of the list L.
範例:
Last[{1, 4, 3}] yields {3}.
備註: To get the last element use Element[{1, 4, 3}, 3].
Last[ <List L>, <Number n of elements> ]
Gives a new list that contains just the last n elements of the list L.
範例:
Last[{1, 4, 3}, 2] yields {4, 3}.
Last[ <Text> ]
Gives last character of the text.
範例:
Last["Hello"] yields "o".
Last[ <Text> , <Number n of elements> ]
Gives the last n characters of the text.
範例:
Last["Hello",2] yields "lo".

CAS Syntax

Last[ <List L> ]
Gives a new list that contains the last element of the list L.
範例:
Last[{1, 4, 3}] yields {3}.
備註: To get the last element use Element[{1, 4, 3}, 3].
Last[ <List L>, <Number n of elements> ]
Gives a new list that contains just the last n elements of the list L.
範例:
Last[{1, 4, 3}, 2] yields {4, 3}.
備註:
See also First Command.
© 2024 International GeoGebra Institute