#!/usr/local/bin/ruby def even(xs) return xs.select{|x| x % 2 == 0 } end xs = 1..9 p even(xs);