Skip to content

Instantly share code, notes, and snippets.

@Marahin
Last active October 24, 2018 11:46
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 Marahin/ea3cee3e782b8f46365d47676a9e785d to your computer and use it in GitHub Desktop.
Save Marahin/ea3cee3e782b8f46365d47676a9e785d to your computer and use it in GitHub Desktop.
def set_of_elements_1
[1].freeze
end
def set_of_elements_2
[2].freeze
end
set_of_elements_3 = set_of_elements_1 + set_of_elements_2
set_of_elements_3.frozen?
=> ? # guess yourself!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment