Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Forked from anonymous/random.rb
Created June 21, 2017 13:10
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 dminuoso/e8662fef7a32a086cd4e8a5bf22ba97f to your computer and use it in GitHub Desktop.
Save dminuoso/e8662fef7a32a086cd4e8a5bf22ba97f to your computer and use it in GitHub Desktop.
rand.rb
takeEven = lambda.select do |x|
x if x % 2 == 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment