DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
ruby array last
a = [1, 2, 3, 4, 5] a.last # => 5 a[-1] # => 5
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#ruby
#array
ADD COMMENT
Topic
COMMENT
Name
3+6 =
Submit