devctrl.utility.increase_value#
- increase_value(values, getter, setter, name)[source]#
From a list of values, get the current value, increase the value to the next possible value and set it using the getter.
- Parameters:
values – list of values
getter – Function returning a value in values
setter – Function taking a value from values
name – Name of the thing, used in a potential error message
- Returns:
The new value