Skip to content

Instantly share code, notes, and snippets.

@alexcharlie
Created March 30, 2009 01:13
Show Gist options
  • Save alexcharlie/87592 to your computer and use it in GitHub Desktop.
Save alexcharlie/87592 to your computer and use it in GitHub Desktop.
#fast
band_a.members.length.times { |i| band_a.members[i].clear_buff(self.round); band_b.members[i].clear_buff(self.round) }
#slow
(band_a.members + band_b.members).each { |i| i.clear_buff(self.round) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment