Rewrites the definition of how the function works. Reworks the style of the examples and adds a negative range example. Changes the while loop to a range loop in the array backwards example. (cherry picked from commit b2841ce194)
b2841ce194