Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Array Addition and Concatenation : Array Addition « Array « Ruby
Ruby
Array
Array Addition
Array Addition and Concatenation
x = [1, 2, 3] y = [
"a"
,
"b"
,
"c"
] z = x + y puts z.inspect
Related examples in the same category
1.
Concatenation with the + operator
2.
concatenate is with the << method