Joined October 2016
·

kazuooooo

Posted to Ruby Array.except over 1 year ago

I add except! like Rails Hash#except
```ruby
class Array

def except(values)
dup.except!(
values)
end

def except!(*values)
values.each {|v| delete(v)}
self
end

end
```

Achievements
1 Karma
0 Total ProTip Views