Skip to content

FirstPosition

Returns the position of the first occurrence of an expression.

$ wo 'FirstPosition[{1, 2, 3, 2, 1}, 2]'
{2}