Deleting While Iterating in Ruby?
- by Jesse J
I'm iterating over a very large set of strings, which iterates over a smaller set of strings. Due to the size, this method takes a while to do, so to speed it up, I'm trying to delete one of the strings from the smaller set that no longer needs to be used. Below is my current code:
Ms::Fasta.foreach(@database) do |entry|
all.each do…