You are viewing a single comment's thread. Return to all comments →
arr.select {|a| a.odd? } arr.reject {|a| a % 3 == 0 } arr.delete_if {|a| a.negative?} arr.keep_if {|a| a.positive?}
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby Array - Selection
You are viewing a single comment's thread. Return to all comments →