kernel/common/array.rb
# Appends the elements in the other Array to self
Appends the elements in the other Array to self
Appends the elements in the other Array to self
def concat(other)
    ary = Type.coerce_to(other, Array, :to_ary)
    size = @total + ary.size
    tuple = Tuple.new size
    tuple.copy_from @tuple, @start, @total, 0 if @total > 0
    tuple.copy_from ary.tuple, ary.start, ary.size, @total
    @tuple = tuple
    @start = 0
    @total = size
    self
  end
def concat ( other ) ary = Type . coerce_to ( other , Array , :to_ary ) size = @total + ary . size tuple = Tuple . new size tuple . copy_from @tuple , @start , @total , 0 if @total > 0 tuple . copy_from ary . tuple , ary . start , ary . size , @total @tuple = tuple @start = 0 @total = size self end
Appends the elements in the other Array to self
Appends the elements in the other Array to self
other
<not_specific>