Project

General

Profile

« Previous | Next » 

Revision 9454

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()

View differences:

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