assert([1].isLinearRamp); assert([1, 2, 3].isLinearRamp); assert(![1, 1].isLinearRamp); assert(![1, 2, 1].isLinearRamp); assert(![1, 2, 4].isLinearRamp);
See Implementation