Skip to content

PositionLargest

Positions of all occurrences of the largest element of a numeric list.

$ wo 'PositionLargest[{3, 1, 4, 1, 5}]'
{5}

Every occurrence of the maximum is reported.

$ wo 'PositionLargest[{1, 3, 2, 3}]'
{2, 4}