Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

remove first element from an array ruby

a = [1, 2, 3]
a.shift
# => [2, 3]
 
PREVIOUS NEXT
Tagged: #remove #element #array #ruby
ADD COMMENT
Topic
Name
7+6 =