R
Roger Pack
"abcd"[0..2] = 'ggg'
=> "ggg"
What is going on here, anybody have any ideas?
-r
=> "ggg"
What is going on here, anybody have any ideas?
-r
=> "ggg""abcd"[0..2] = 'ggg'
What is going on here, anybody have any ideas?
=> "gggd"x[0..2] = 'ggg' => "ggg"
x
=> "ggg""abcd"[0..2] = 'ggg'
What is going on here, anybody have any ideas?
-r
Tony said:
Ruby lets you invoke #[]= on literals.
=> "ggg""abcd"[0..2] = 'ggg'
What is going on here, anybody have any ideas?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.