IndexOf 指令

出自GeoGebra Manual
前往: 導覽搜尋
Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


IndexOf[ <Object>, <List> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
IndexOf[ <Object>, <List>, <Start Index> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
IndexOf[ <Text>, <Text>]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
IndexOf[ <Text>, <Text>, <Start Index> ]
UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
IndexOf[ <Object>, <List> ]
Returns position of first occurrence of Object in List, e.g. IndexOf[5,{1,3,5,2,5,4}] returns 3. When the object is not found, result is undefined.
IndexOf[ <Object>, <List>, <Start Index> ]
Same as above, but the search starts at given index.
範例:
  • IndexOf[5,{1,3,5,2,5,4},3] returns 3.
  • IndexOf[5,{1,3,5,2,5,4},4] returns 5.
  • IndexOf[5,{1,3,5,2,5,4},6] returns undefined.
IndexOf[ <Text Needle>, <Text Haystack>]
Returns position of first occurrence of Needle in Haystack, e.g. IndexOf["Ge","GeoGebra"] returns 1.
IndexOf[ <Text Needle>, <Text Haystack>, <Start Index> ]
Same as above, but the search starts at given index.
範例: IndexOf["Ge","GeoGebra",2] returns 4.
© 2024 International GeoGebra Institute