Ruby/Array/concat

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск

As with +, you can concatenate one array onto another with concat

q1 = %w[ January February March ]
q2 = %w[ April May June ]
q3 = %w[ July August September ]
q4 = %w[ October November December ]
last_part = q3.concat( q4 )