Multiton: Difference between revisions
m
→{{header|Raku}}: simplify
(→{{header|Raku}}: revised) |
m (→{{header|Raku}}: simplify) |
||
Line 133:
class Multiton {
my %instances = MultitonType.keys Z=> $ ⚛=
has $.type is rw;
method TWEAK { self.type = 'Nothing' unless cas(%instances{self.type}, 1, 0) }
}
|