increment

fun increment(increase: Double = 1.0)(source)

Increments the value of the variable by the amount supplied. Throws an IllegalArgumentException if the value is negative.

Parameters

increase

The amount to increase by. Must be non-negative.