From: "Bartosz DziewoƄski" Date: 2012-11-29T21:37:51+09:00 Subject: Re: Getting the smallest Items of an Array 2012/11/29 Regis d'Aubarede : >>> def n_min(l,n) (1..n).map {a=l.min ; l=l-[a]; a } end > => nil >>> n_min([1,2,-1,3,4],2) > => [-1, 1] Uhh... how about ary.sort.first(n)? -- Matma Rex