Revision 9454
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/ints.py | ||
---|---|---|
1 |
# Integers |
|
2 |
|
|
3 |
def set_min(value, min_): return max(value, min_) |
|
4 |
|
|
5 |
def set_max(value, max_): return min(value, max_) |
Also available in: Unified diff
added lib/ints.py with renamings of max()->set_*min*(), min()->set_*max*() for easier understandability of the set-ceiling/set-floor use cases of min()/max()