MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / clamp

Function clamp

data/python/01_functions.py:1–2  ·  view source on GitHub ↗
(value, lo, hi)

Source from the content-addressed store, hash-verified

1def clamp(value, lo, hi):
2 return max(lo, min(value, hi))
3
4def factorial(n):
5 if n <= 1:

Callers 1

01_functions.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected