UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
Bounds
/
inside.ts
6 lines
(4 loc)
•
152 B
text/typescript
View Raw
1
2
3
4
5
6
import
{
Bounds
}
from
'./index'
export
const
inside = <N>
(
bounds: Bounds<N>
) =>
(
value: N
) =>
{
return
value >= bounds.
min
&& value <= bounds.
max
}