last « Array « Ruby






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