Skip to content

Instantly share code, notes, and snippets.

@mstump
Created April 15, 2010 05:48
Show Gist options
  • Save mstump/366723 to your computer and use it in GitHub Desktop.
Save mstump/366723 to your computer and use it in GitHub Desktop.
(defn __findIntegerTriaglesWithIntRatio [p a bseq output]
(if (empty? bseq)
output
((def a (findArea p a (first bseq)))
(if (integerRatio? a p)
(recur p a (rest bseq) (conj output a))
(recur p a (rest bseq) output)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment