Created
June 9, 2014 14:24
-
-
Save madrobby/0caa0a78445f41de422a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> A = [1,2,3].freeze | |
=> [1, 2, 3] | |
irb(main):002:0> A[2] = 5 | |
TypeError: can't modify frozen array | |
from (irb):2:in `[]=' | |
from (irb):2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment