Array.+
+that
Group: Operators
Aliases: append
, concatenate
, union
Documentation
Concatenates two arrays, resulting in a new Vector
, containing all the elements of self
, followed by all the elements of that
.
Arguments
that
: The array to concatenate to the end ofself
.
Examples
Concatenate two single-element arrays.
[1].to_array + [2].to_array