Jump to content

Algebraic data types: Difference between revisions

m
→‎{{header|Raku}}: Fix comment: Perl 6 --> Raku
m (→‎{{header|Perl}}: Fix comments: Perl 6 --> Raku)
m (→‎{{header|Raku}}: Fix comment: Perl 6 --> Raku)
Line 1,538:
(formerly Perl 6)
{{works with|rakudo|2016.11}}
Perl 6Raku doesn't have algebraic data types (yet), but it does have pretty good pattern matching in multi signatures.
<lang perl6>enum RedBlack <R B>;
 
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.