Created
March 23, 2015 03:04
-
-
Save secwang/c73a4a36187e440ac324 to your computer and use it in GitHub Desktop.
dups
This file contains hidden or 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 dups [seq] | |
| (for [[id freq] (frequencies seq) | |
| :when (> freq 1)] | |
| id)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment