Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
def
clamp(value, lo, hi):
2
return
max(lo, min(value, hi))
3
4
def
factorial(n):
5
if
n <= 1:
Callers
1
01_functions.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected