Advertisement
Guest User

Untitled

a guest
May 27th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. [6] pry(#<HashTable>)> arr = Array.new(10,[])
  2. => [[], [], [], [], [], [], [], [], [], []]
  3. [7] pry(#<HashTable>)> arr[2].unshift(3)
  4. => [3]
  5. [8] pry(#<HashTable>)> arr
  6. => [[3], [3], [3], [3], [3], [3], [3], [3], [3], [3]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement