exercism/elixir/twelve-days
Danil Negrienko d00a9787f9 twelve_days 2024-08-21 20:36:51 -04:00
..
.exercism twelve_days 2024-08-21 20:36:51 -04:00
lib twelve_days 2024-08-21 20:36:51 -04:00
test twelve_days 2024-08-21 20:36:51 -04:00
.formatter.exs twelve_days 2024-08-21 20:36:51 -04:00
.gitignore twelve_days 2024-08-21 20:36:51 -04:00
HELP.md twelve_days 2024-08-21 20:36:51 -04:00
README.md twelve_days 2024-08-21 20:36:51 -04:00
mix.exs twelve_days 2024-08-21 20:36:51 -04:00

README.md

Twelve Days

Welcome to Twelve Days on Exercism's Elixir Track. If you need help running the tests or submitting your code, check out HELP.md.

Instructions

Your task in this exercise is to write code that returns the lyrics of the song: "The Twelve Days of Christmas."

"The Twelve Days of Christmas" is a common English Christmas carol. Each subsequent verse of the song builds on the previous verse.

The lyrics your code returns should exactly match the full song text shown below.

Lyrics

On the first day of Christmas my true love gave to me: a Partridge in a Pear Tree.

On the second day of Christmas my true love gave to me: two Turtle Doves, and a Partridge in a Pear Tree.

On the third day of Christmas my true love gave to me: three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the fourth day of Christmas my true love gave to me: four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the fifth day of Christmas my true love gave to me: five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the sixth day of Christmas my true love gave to me: six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the seventh day of Christmas my true love gave to me: seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the eighth day of Christmas my true love gave to me: eight Maids-a-Milking, seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the ninth day of Christmas my true love gave to me: nine Ladies Dancing, eight Maids-a-Milking, seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the tenth day of Christmas my true love gave to me: ten Lords-a-Leaping, nine Ladies Dancing, eight Maids-a-Milking, seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the eleventh day of Christmas my true love gave to me: eleven Pipers Piping, ten Lords-a-Leaping, nine Ladies Dancing, eight Maids-a-Milking, seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

On the twelfth day of Christmas my true love gave to me: twelve Drummers Drumming, eleven Pipers Piping, ten Lords-a-Leaping, nine Ladies Dancing, eight Maids-a-Milking, seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.

Source

Created by

  • @DoggettCK

Contributed to by

  • @angelikatyborska
  • @Cohen-Carlisle
  • @devonestes
  • @neenjaw
  • @PatrickMcSweeny
  • @sotojuan

Based on

Wikipedia - https://en.wikipedia.org/wiki/The_Twelve_Days_of_Christmas_(song)