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
;; inspiration: http://mike.place/2016/extranapkins/ | |
;; number conversion code taken from http://codewars.com/kumite/53e6a24ec4d201e407000473?sel=53ee1b32f611ce423b000cf6 | |
;; implementation below | |
(declare convert) | |
(defn iter [num] | |
(reduce #(format %2 (convert (count (clojure.string/split %1 #"\s"))) %1) "Fuck off" (repeat num "I've got %s words for you: %s"))) | |
(iter 100) |