인덱스 명령

GeoGebra Manual
이동: 둘러보기, 검색
Accessories dictionary.png
이 페이지는 공식 매뉴얼에서 출력과 pdf를 위한 부분입니다. 일반 사용자들은 이 페이지를 편집할 수 없습니다. 만일 이 페이지에서 오류를 발견하였으면, 연락하여 주시기 바랍니다.사용자에 의해 편집 가능한 버전으로 이동
IndexOf( <Object>, <List> )
Returns position of first occurrence of Object in List.
예: 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>, <Text> )
Specifies the position at which the short text appears for the first time in the whole text.
예: IndexOf("Ge", "GeoGebra") returns 1.


IndexOf( <Text>, <Text>, <Start Index> )
Same as above, but the search starts at given index.
예: IndexOf("Ge", "GeoGebra",2) returns 4.
© 2024 International GeoGebra Institute