say, I want to find an index of a specific element in a list using
Position[{a, b, c, d, e, f}, c]
and it returns {{3}}
How can I use this returned value as index to pick a certain element from another list? How can I convert {{3}}
to an integer or is there any other way to achieve what I want to do?
Thanks in advance!
PositionIndex
withPart
. For example:PositionIndex[list1][c] // list2[[#]] &
$\endgroup$