def make_ends(nums):
  """
  Given an array of ints, return a new array length 2 containing the first
  and last elements from the original array. The original array will be
  length 1 or more.
  """
  return [ nums[0] , nums[-1] ]