Say I have a list:
{{Line[{{-Sqrt[5/8 - Sqrt[5]/8], 1/4 (-1 - Sqrt[5])}, {0, 1}}],
Line[{{Sqrt[5/8 - Sqrt[5]/8], 1/4 (-1 - Sqrt[5])}, {0,1}}]},
{Line[{{-Sqrt[5/8 + Sqrt[5]/8],1/4 (-1 + Sqrt[5])}, {Sqrt[5/8 - Sqrt[5]/8], 1/4 (-1 - Sqrt[5])}}],
Line[{{Sqrt[5/8 - Sqrt[5]/8], 1/4 (-1 - Sqrt[5])}, {0, 1}}]}}
So that each sublist of that list consist of, in this case, two lines. All the points that tell us about the position of the line appear in another list, call this list points
. Now, I want to extract the position of all the points from the above list in that points
list. I'm aware of Position
function but I'm not sure how to effectively apply it to my big list above in order to get the list of positions. AI'd very much appreciate some help.
points
why not use Mathematica's expressiveness, give it the headPoint
and really call it that? Readability often beats shortness (and maybe also performance). $\endgroup$