Search
 
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
Name
3+6 =