Mega Code Archive
Categories
/
Ruby
/
Array
Access the last element in the array
q1 = %w[ January February March ] q1[-1] # => March