HP Prime for All

English  Русский 

Syntax

POS(list, element)

Description

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.

Example

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

POS — Discussion