Range#
- class loop_detection.Range(start, end, name=None, max_card=inf, field=None)[source]#
Class for range rule representation
- Parameters:
Examples
>>> r1 = Range(1,7) >>> r2 = Range(0,4)
- __and__(other)[source]#
Returns the result of set intersection
Examples
>>> r1 = Range(1,7) >>> r2 = Range(0,4) >>> r1 & r2 [1, 4]