7 ary.delete(result.last)
9 if result.size == self.size
23 raise TypeError, "can't convert to Array" unless elem.class == Array
27 elem.each { |x| hash[x] = true }
28 self.each { |x| array << x unless hash[x] }
33 raise TypeError, "can't convert to Array" unless elem.class == Array
40 raise TypeError, "can't convert to Array" unless elem.class == Array
44 elem.each{|v| hash[v] = true }
54 def flatten(depth=nil)
57 if e.is_a?(Array) && (depth.nil? || depth > 0)
58 ar += e.flatten(depth.nil? ? nil : depth - 1)