Skip to content

Instantly share code, notes, and snippets.

@erik
Created April 20, 2010 20:04
Show Gist options
  • Save erik/372987 to your computer and use it in GitHub Desktop.
Save erik/372987 to your computer and use it in GitHub Desktop.
(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