Skip to content

Instantly share code, notes, and snippets.

@jlindsey
Last active September 28, 2015 19:27
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 jlindsey/0d0f298d9e76f9b80a17 to your computer and use it in GitHub Desktop.
Save jlindsey/0d0f298d9e76f9b80a17 to your computer and use it in GitHub Desktop.
all_pics = get_all_pictures()
subset_a = all_pics.find_all(&:foo?)
subset_b = all_pics - subset_a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment