Collections: Difference between revisions
m
→P6opaque object (immutable in structure): Make complete, runnable example
(→Arrays) |
Thundergnat (talk | contribs) m (→P6opaque object (immutable in structure): Make complete, runnable example) |
||
Line 2,329:
===P6opaque object (immutable in structure)===
<lang perl6>
my $obj = Something.new: foo => 1, bar => 2;
my $newobj = $obj but role { has $.baz = 3 } # anonymous mixin</lang>
|