Position

WMA link


Position[expr, patt]

returns the list of positions for which expr matches patt.

Position[expr, patt, ls]

returns the positions on levels specified by levelspec ls.

Find positions upto 3 levels deep:

Find all powers of x:

Use Position as an operator:

Pick
Prepend