The reverse method now returns an iterator instead of an array.