Compound data type: Difference between revisions

no edit summary
(Add Plain English)
No edit summary
Line 1,343:
print((a-b):getXY()) --> -2 -2 -- using __sub behaviour
</lang>
 
=={{header|Maple}}==
<lang Maple>Point:= Record(x = 2,y = 4):
 
Point:-x;
Point:-y;</lang>
{{out}}
<pre>
2
4
</pre>
 
=={{header|Mathematica}} / {{header|Wolfram Language}}==
Anonymous user