Created
May 30, 2015 18:59
-
-
Save ykarikos/f1e6e208789e300f7adc to your computer and use it in GitHub Desktop.
Talvikin numeroharjoittelu
This file contains hidden or 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
(use '[clojure.java.shell :only [sh]]) | |
(defn say [& args] (apply sh "say" args)) | |
(defn say-and-print [n] | |
(let [n-str (str n)] | |
(println n-str) | |
(Thread/sleep 2000) | |
(say n-str))) | |
(map say-and-print (range 100)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment