Compound data type: Difference between revisions
Content added Content deleted
m (→{{header|ATS}}) |
|||
Line 379: | Line 379: | ||
=={{header|ATS}}== |
=={{header|ATS}}== |
||
There are numerous ways to do this. The simplest is to use an |
There are numerous ways to do this. The simplest is to use an "unboxed" tuple type: |
||
<lang ATS>typedef point (t : t@ype+) = @(t, t) |
<lang ATS>typedef point (t : t@ype+) = @(t, t) |