Skip to content

Instantly share code, notes, and snippets.

@arohner
Created February 5, 2010 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arohner/296026 to your computer and use it in GitHub Desktop.
Save arohner/296026 to your computer and use it in GitHub Desktop.
(let [pairs (for [i myseq
j myseq]]
(loop [pairs pairs]
(let [[a b] (first pairs)
(if (pred a b)
(recur (remove #(= %2 b) pairs))
(recur (rest pairs))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment