Last 指令
来自GeoGebra Manual
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版。
- Last[ <List> ]
- Last[ <List> , <Number of Elements> ]
- Last[ <Text> ]
- Last[ <Text> , <Number of Elements> ]
CAS 視窗
- Last[ <List> ]
- Last[ <List> , <Number of Elements> ]
- 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.