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
Replace an array : replace « Array « Ruby
Ruby
Array
replace
Replace an array
a = [
'a'
,
'b'
,
'c'
] p a.replace([1,2,3])
Related examples in the same category