Sha256: 3b141e81f58c4c2a66e65cfd69ad24c12fe1b8f089d8cf22cd183c616a58e8c7
Contents?: true
Size: 192 Bytes
Versions: 2
Compression:
Stored size: 192 Bytes
Contents
module DNAHamming class Pair < Struct.new(:first, :second) def same? inject(:eql?) end def swap! members.zip(entries.reverse) {|a,b| self[a] = b} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dna_hamming-0.1.1 | lib/dna_hamming/pair.rb |
dna_hamming-0.1.0 | lib/dna_hamming/pair.rb |