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