jameskilton (owner)

Revisions

gist: 114348 Download_button fork
public
Public Clone URL: git://gist.github.com/114348.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
# 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? }