remove extra def of clamp

This commit is contained in:
Danny Ryan 2018-10-14 08:32:10 -05:00
parent 4191b0089a
commit cdabb4b205
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 0 additions and 2 deletions

View File

@ -378,8 +378,6 @@ def clamp(minval: int, maxval: int, x: int) -> int:
return maxval
else:
return x
def clamp(minval, maxval, x):
return minval if x < minval else maxval if x > maxval else x
```
Now, our combined helper method: