Cheryl's birthday: Difference between revisions

Content added Content deleted
(→‎{{header|Phix}}: added functional/filter version)
m (→‎{{header|Phix}}: distro link)
Line 1,794: Line 1,794:


=={{header|Phix}}==
=={{header|Phix}}==
<lang Phix>-- demo\rosetta\Cheryls_Birthday.exw
<lang Phix>sequence choices = {{5, 15}, {5, 16}, {5, 19}, {6, 17}, {6, 18},
sequence choices = {{5, 15}, {5, 16}, {5, 19}, {6, 17}, {6, 18},
{7, 14}, {7, 16}, {8, 14}, {8, 15}, {8, 17}}
{7, 14}, {7, 16}, {8, 14}, {8, 15}, {8, 17}}


Line 1,824: Line 1,825:


=== functional/filter ===
=== functional/filter ===
(this can also be found in demo\rosetta\Cheryls_Birthday.exw)
<lang Phix>enum MONTH, DAY
<lang Phix>enum MONTH, DAY