WolframLang: Position of an Element
Position Spec
A position is a list of integers that uniquely specify a part of expression.
For example, if we have
{a, {{b,c}, d}, e}
- position
{1}
isa
- position
{2}
is{{b,c}, d}
- position
{2,1}
is{b,c}
- position
{2,2}
isd
- position
{2,1,1}
isb
- position
{2,1,2}
isc
- position
{3}
ise
Index counting start at 1. Index 0 means the Head of Expression.