hydra.overlay.python.lib.ordering module
Python implementations of hydra.overlay.python.lib.ordering primitives.
- hydra.overlay.python.lib.ordering.compare(x: Any, y: Any) Comparison
Compare two values structurally and return a Comparison.
Delegates to
hydra.overlay.python.util._compare.compare, the shared structural comparator (also used to orderPersistentMap/PersistentSetkeys), so that thehydra.overlay.python.lib.ordering.compareprimitive matches docs/specification/ordering-and-equality.md exactly: no print-based fallback anywhere.
- hydra.overlay.python.lib.ordering.gt(a: Any, b: Any) bool
Check if first value is greater than second.
- hydra.overlay.python.lib.ordering.gte(a: Any, b: Any) bool
Check if first value is greater than or equal to second.
- hydra.overlay.python.lib.ordering.lt(a: Any, b: Any) bool
Check if first value is less than second.
- hydra.overlay.python.lib.ordering.lte(a: Any, b: Any) bool
Check if first value is less than or equal to second.
- hydra.overlay.python.lib.ordering.max(a: Any, b: Any) Any
Return the maximum of two values.
- hydra.overlay.python.lib.ordering.min(a: Any, b: Any) Any
Return the minimum of two values.