Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created May 19, 2009 19:50
Show Gist options
  • Save jasonroelofs/114348 to your computer and use it in GitHub Desktop.
Save jasonroelofs/114348 to your computer and use it in GitHub Desktop.
# david_koontz hkhalid: here's a practice Ruby problem,
# given the Array [4, 53, 27, 81, 90]
# return all elements that are odd
puts [4, 53, 27, 81, 90].select {|n| n.odd? }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment