The Twelve Days of Christmas: Difference between revisions
Content deleted Content added
→{{header|Picat}}: Added subsections |
|||
Line 3,904:
=={{header|Picat}}==
===List comprehension===
<lang Picat>go =>
Days = "first second third fourth fifth sixth seventh eighth ninth tenth eleventh twelfth".split(" "),
Line 3,925 ⟶ 3,926:
nl.</lang>
===Definite clause grammars (DCG)===
<lang Picat>go2 ?=>
lyrics(Ls,[]),
Line 3,966:
day(eleventh) --> "Eleven pipers piping".
day(twelth) --> "Twelve drummers drumming".</lang>
=={{header|PicoLisp}}==
|