Artificial intelligent assistant

rubyの配列の演算 [*arr1 + arr2] の仕組みが分からない arr1 = ["1","2"] arr2 = ["3","4"] [*arr1 + arr2] #=> ["1","2","3","4"] . `Array#+` . , .

`Array#+`


arr1 + arr2 #=>["1", "2", "3", "4"]


`*`


arr = [1,2]
a, b = *arr #a => 1 b => 2
a, b = 1, 2 #


`*arr1 + arr2``*(arr1 + arr2)``"1", "2", "3", "4"`


[*arr1 + arr2]
[*(arr1 + arr2)]
[*(["1", "2", "3", "4"])]
["1", "2", "3", "4"]


xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 0e40f0188755e5a5cb649b5f01a1321c