DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
rails array pop first n elements
array = [1, 2, 3, 4, 5, 6] array.drop(2) # => [3, 4, 5, 6]
PREVIOUS
NEXT
Tagged:
#rails
#array
#pop
#elements
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit