Anonymous user
Set puzzle: Difference between revisions
→{{header|Perl 6}}: some clarifications
(→{{header|Perl 6}}: add entry) |
(→{{header|Perl 6}}: some clarifications) |
||
Line 427:
=={{header|Perl 6}}==
This uses the <tt>combine</tt> routine from [[Combinations#Perl_6]] task. The trick here is to
<lang perl6>enum Color (red => 512, green => 1024, purple => 2048);
enum Count (one => 64, two => 128, three => 256);
Line 485:
red three diamond solid
purple two diamond striped</pre>
=={{header|Python}}==
<lang python>#!/usr/bin/python
|