specify where to start in the array and how many elements you want
year = [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
year[0, 3] # => [2000, 2001, 2002]
# The 0 is the start parameter. It says to start at 0, or the beginning of the array.
# The second is the length parameter, which tells how many elements you want.
Related examples in the same category