Skip to main content

PositionSmallest

PositionSmallest[list] gives the positions of the numerically smallest value in list.

PositionSmallest[list,n] gives the positions of the first n smallest values.

PositionSmallest[list,n,orderfun] gives the positions of the n smallest values in list as determined by orderfun.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.