Sha256: d81d160eb643099d562431fdc906d7da6c360c6b6af8a8d0ce0b8e8ab15948b3

Contents?: true

Size: 267 Bytes

Versions: 13

Compression:

Stored size: 267 Bytes

Contents

class Array
  def delete_at_many(*indices)
    indices.uniq.sort.reverse.each{|ind| delete_at ind}
  end
  def delete_many(*elements)
    elements.each{|el| delete el}
  end
end

class Hash
  def delete_many(*keys)
    keys.each{|el| delete el}
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
bioinform-0.1.12 lib/bioinform/support/delete_many.rb
bioinform-0.1.11 lib/bioinform/support/delete_many.rb
bioinform-0.1.10 lib/bioinform/support/delete_many.rb
bioinform-0.1.9 lib/bioinform/support/delete_many.rb
bioinform-0.1.8 lib/bioinform/support/delete_many.rb
bioinform-0.1.7 lib/bioinform/support/delete_many.rb
bioinform-0.1.6 lib/bioinform/support/delete_many.rb
bioinform-0.1.5 lib/bioinform/support/delete_many.rb
bioinform-0.1.4 lib/bioinform/support/delete_many.rb
bioinform-0.1.3 lib/bioinform/support/delete_many.rb
bioinform-0.1.2 lib/bioinform/support/delete_many.rb
bioinform-0.1.1 lib/bioinform/support/delete_many.rb
bioinform-0.1.0 lib/bioinform/support/delete_many.rb