Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby append to array

array = []
array << "element 1"
array.append "element 2"
puts array

# ["element 1", "element 2"]
Source by apidock.com #
 
PREVIOUS NEXT
Tagged: #ruby #append #array
ADD COMMENT
Topic
Name
4+2 =