Sha256: 5b72b45c95412ea3c5c6d4b83444c863f324386071a7054352eb2fab592e949e

Contents?: true

Size: 119 Bytes

Versions: 10

Compression:

Stored size: 119 Bytes

Contents

class Array
  def self.zip(*arrays)
    return []  if arrays.empty?
    arrays.first.zip(*arrays[1..-1])
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bioinform-0.1.12 lib/bioinform/support/array_zip.rb
bioinform-0.1.11 lib/bioinform/support/array_zip.rb
bioinform-0.1.10 lib/bioinform/support/array_zip.rb
bioinform-0.1.9 lib/bioinform/support/array_zip.rb
bioinform-0.1.8 lib/bioinform/support/array_zip.rb
bioinform-0.1.7 lib/bioinform/support/array_zip.rb
bioinform-0.1.6 lib/bioinform/support/array_zip.rb
bioinform-0.1.5 lib/bioinform/support/array_zip.rb
bioinform-0.1.4 lib/bioinform/support/array_zip.rb
bioinform-0.1.3 lib/bioinform/support/array_zip.rb