Skip to content

Instantly share code, notes, and snippets.

@mynyml
Created September 18, 2009 21:07
Show Gist options
  • Save mynyml/189290 to your computer and use it in GitHub Desktop.
Save mynyml/189290 to your computer and use it in GitHub Desktop.
uniques = results.delete_if {|r| r['occurrences'] == 1 }.map {|r| r['id'] }
duplicates = results.map {|r| r['id'] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment