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
(set! *unchecked-math* true) | |
(defmacro iloop [[b t n] & body] | |
`(loop [~@b] | |
(when ~t | |
~@body | |
(recur ~n)))) | |
(defn count-primes [^long n] | |
(let [c (inc n) |
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
(comment " | |
SpeedNotes Clojure script, by Torbjørn Marø. | |
Version 1.0 - 2010.08.17 | |
Clojure version 1.1 (w/Contrib) | |
====================================================================== | |
Always have it running in a console window to quickly note down stuff | |
you need to remember - thoughts and ideas you don't want to loose, | |
but don't want to steal focus away from what you are currently doing | |
either. |