Advertisement
Guest User

Yay, Ruby!

a guest
Aug 30th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. irb(main):009:0> a = [[1]]
  2. => [[1]]
  3. irb(main):010:0> b = a.dup
  4. => [[1]]
  5. irb(main):011:0> b[0][0]=2
  6. => 2
  7. irb(main):012:0> a
  8. => [[2]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement