# File lib/quickbooks/ruby_magic.rb, line 180
  def only!(*values)
    values.flatten!
    i = 0
    while i <= length-1 do
      (self[i].is_one_of?(values) || collect[i].is_one_of?(values)) ? i += 1 : self.slice!(i)
    end
    self
  end