This one should be fairly easy for any Mathematica programmer:
I have
GP = GeoPoint[Name_, {East_Real, North_Real}, Elev_Real];
GP // FullForm
and need to get rid of al the patterns in order to use the expression on the rhs
This works:
GP /. Pattern -> axa
% /. axa[n_, _] -> n
and produces the desired output:
GeoPoint[Name, {East, North}, Elev]
Now - how do I get rid of the extra step?
The problem is that Mathematica is evaluating the Pattern and I don't know how to tell it not to do so - I can't figure out how to use any of the Hold, HoldPattern, HoldAll, HoldComplete etc constructs