Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby unshift method

irb>> a = [ 0, 1, 2]
=> [0, 1, 2]
irb>> a.unshift('x')
=> ["x", 0, 1, 2]
 
PREVIOUS NEXT
Tagged: #ruby #unshift #method
ADD COMMENT
Topic
Name
5+6 =