Skip to content

Instantly share code, notes, and snippets.

/main.rb Secret

Created February 25, 2016 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3071d6c6f3bfeab7ae9d to your computer and use it in GitHub Desktop.
Save anonymous/3071d6c6f3bfeab7ae9d to your computer and use it in GitHub Desktop.
require 'set'
h = {
a: Set.new,
b: Set.new,
c: Set.new
}
# Keys :a, :b and :c are known.
h[:a] = h[:a].to_a
h[:b] = h[:b].to_a
h[:c] = h[:c].to_a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment