remove extra def of clamp
This commit is contained in:
parent
4191b0089a
commit
cdabb4b205
|
@ -378,8 +378,6 @@ def clamp(minval: int, maxval: int, x: int) -> int:
|
||||||
return maxval
|
return maxval
|
||||||
else:
|
else:
|
||||||
return x
|
return x
|
||||||
def clamp(minval, maxval, x):
|
|
||||||
return minval if x < minval else maxval if x > maxval else x
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, our combined helper method:
|
Now, our combined helper method:
|
||||||
|
|
Loading…
Reference in New Issue