Skip to content

Instantly share code, notes, and snippets.

@nathankleyn
Created December 30, 2012 12:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathankleyn/4412566 to your computer and use it in GitHub Desktop.
Save nathankleyn/4412566 to your computer and use it in GitHub Desktop.
Gist #10 For "Functional Programming Techniques With Ruby: Part III"
(1..100).lazy.select { |x| x % 3 == 0 }.select { |x| x % 4 == 0 }.to_a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment