Created
April 20, 2010 20:04
-
-
Save erik/372987 to your computer and use it in GitHub Desktop.
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
(defn lpf | |
[num] | |
(loop [div 2 lim num] | |
(cond | |
(< (/ lim div) 1) (do (println (str "Returning: " (dec div))) (dec div)) | |
(= (rem lim div) 0) (do (println (str "Recurring:(frm match) " (inc div) " " (/ lim div)))(recur (inc div) (/ lim div))) | |
:else (do(println (str "Recurring:(frm else) " (inc div)" " lim))(recur (inc div) lim))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment