2 ms·
No, it's operating in place: def append_world(str) str << " world" end a = "hello" append_world(a) a #=> "he
by jeorgun 13y ago
No, it's operating in place:
def append_world(str)
str << " world"
end
a = "hello"
append_world(a)
a #=> "hello world"