Created
August 1, 2010 12:58
-
-
Save klang/503331 to your computer and use it in GitHub Desktop.
The song 'Around the World' by Daft Punk has a deeply repetitive nature, unfortunately the lyrics is oftent stated wrong. The song has 4 verses consisting of 8, 16, 28 and 20 double repetitions of the phrase 'Around the world'. All in all, the song has 72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns daft | |
(meta {:description "The song 'Around the World' by Daft Punk has a deeply repetitive nature, unfortunately the lyrics is oftent stated wrong. | |
The song has 4 verses consisting of 8, 16, 28 and 20 double repetitions of the phrase 'Around the world'. | |
All in all, the song has 72 double repetitions or 144 repetitions of the iconic phrase."})) | |
(def lyrics (repeat "Around the world, around the world")) | |
(defn sing [lyrics] | |
(reduce str | |
(interleave | |
(map #(reduce str %) | |
(map #(interleave % (repeat "\n")) | |
(map #(take % lyrics) [8 16 28 20]))) | |
(repeat "\n") ))) | |
(comment | |
;; works in the REPL | |
(println (sing lyrics))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daft> (println (sing lyrics)) | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
Around the world, around the world | |
nil | |
daft> |
Legacy, I guess. Thanks. Corrected.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's a bug in the usage instructions, should be: (sing lyrics) not (sing song).