HP Prime for All

English  Русский 


POS(list, element)


List Position. Returns the position of element within list. If there is more than one instance of the element, the position of the first occurrence is returned. A value of 0 is returned if there is no occurrence of the specified element.


POS({0, 1, 3, 5}, 1) returns 2

POS — Discussion