Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irb(main):009:0> a = [[1]]
- => [[1]]
- irb(main):010:0> b = a.dup
- => [[1]]
- irb(main):011:0> b[0][0]=2
- => 2
- irb(main):012:0> a
- => [[2]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement