Skip to content

Instantly share code, notes, and snippets.

@vestige
Created September 5, 2018 11:03
Show Gist options
  • Save vestige/07e1c425b3654720733d471d75cc4859 to your computer and use it in GitHub Desktop.
Save vestige/07e1c425b3654720733d471d75cc4859 to your computer and use it in GitHub Desktop.
ary = [1, 2, 3, "A", 1 + 3]
p ary
p ary[0]
p ary[-1]
ary[10] = "mmm"
ary[2] = 20
ary[0] = 0
p ary
hs = {}
hs["a"] = 1
hs["b"] = 2
p hs
p hs["a"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment