This repository contains a Rust-based application to print the lyrics to the Christmas carol “The Twelve Days of Christmas,” efficiently taking advantage of the repetition in the song.
This project provides an implementation to print the full lyrics of the Christmas carol "The Twelve Days of Christmas." It utilizes the repetitive structure of the song to optimize the output.
Follow these instructions to set up and run the project on your local machine.
- Clone the repository:
git clone https://github.com/your-username/twelve-days-of-christmas.git cd twelve-days-of-christmas
- Build the project:
cargo build
Run the following command to print the lyrics:
cargo run
$ cargo run
[Verse 1]
On the twelfth day of Christmas, my true love sent to me
A partridge in a pear tree
[Verse 2]
On the twelfth day of Christmas, my true love sent to me
Two turtle doves and
A partridge in a pear tree
[Verse 3]
On the twelfth day of Christmas, my true love sent to me
Three french hens
Two turtle doves and
A partridge in a pear tree
...