Compound data type: Difference between revisions

(→‎{{header|AmigaE}}: necessary float conversion operators added)
Line 1,261:
<lang perl6>class Point { has $.x is rw; has $.y is rw; }
my Point $point .= new(x => 3, y => 8);</lang>
 
===[http://design.perl6.org/S32/Containers.html#Set Set]===
<lang perl6>my $s1 = set <a b c d>; # order is not preserved
my $s2 = set <c d e f>;
say $s1 (&) $s2; # OUTPUT«set(c, e)»
say $s1 ∩ $s2; # we also do Unicode</lang>
 
=={{header|Phix}}==
Anonymous user