Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
last « Array « Ruby
Ruby
Array
last
1.
Get the first and last elements of an array is with the first and last methods
2.
Both first and last take integer arguments, indicating the number of elements to return