Skip to content

Instantly share code, notes, and snippets.

@julioterra
Created October 3, 2011 18:02
Show Gist options
  • Select an option

  • Save julioterra/1259783 to your computer and use it in GitHub Desktop.

Select an option

Save julioterra/1259783 to your computer and use it in GitHub Desktop.
initializing a set in ruby
set = Set.new(collection) { |element| element.upcase }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment