- 大元も値を変更するかいなか
破壊的メソッドとは本体のデータを変更する事
- 非破壊的
string = "test code"
string.slice!(0,4)
p string
→ "test code"
- 破壊的
string = "test code"
string.slice!(0,4)
p string
→ " code"
Go to list of users who liked
More than 5 years have passed since last update.
破壊的メソッドとは本体のデータを変更する事
- 非破壊的
string = "test code"
string.slice!(0,4)
p string
→ "test code"
- 破壊的
string = "test code"
string.slice!(0,4)
p string
→ " code"
Register as a new user and use Qiita more conveniently
Go to list of users who liked