isDecreasing

Examines each element, a_i starting at 0, and determines if all the elements are decreasing a_0 gte a_1 gte a_2, etc.

Return

true if all elements are decreasing, if there are 0 elements then it returns false, 1 element returns true

Parameters

array

the array to check, must not be null