decrease

fun decrease(key: String, value: Int = 1): Int

Decreases an Int by the given value or by 1 if no value is specified.

If the member doesn't exist, it will be set to 0.

Return

The new value

Parameters

key

The key of the Int

value

The value to decrease by. Defaults to 1