RubyFlow The Ruby and Rails community linklog

When should I use a Set in Ruby?

Array is so common in Ruby and well done (especially as a litteral) that it’s usually the first choice as a collection. But sometimes we need to avoid duplicates, and we end to duplicate a lot of checks to do that. The post explains that use case and suggests a solution..

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in