ary.concat(other_ary) â ary
Instance Public methods
Appends the elements of other_ary
to self
.
1 2 3 4 | [ "a" , "b" ].concat( [ "c" , "d" ] ) #=> [ "a", "b", "c", "d" ] a = [ 1 , 2 , 3 ] a.concat( [ 4 , 5 ] ) a #=> [ 1, 2, 3, 4, 5 ] |
See also Array#+.
Please login to continue.