Skip to content

Instantly share code, notes, and snippets.

@ryanckulp
Created January 1, 2018 23:07
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 ryanckulp/6c9fd80e88de9658b751219982a35f50 to your computer and use it in GitHub Desktop.
Save ryanckulp/6c9fd80e88de9658b751219982a35f50 to your computer and use it in GitHub Desktop.
array with different element types in Ruby
arr = [3, "four", {five: 'six'}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment