UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
logic
/
exists.ts
7 lines
(5 loc)
•
230 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{
Filter
}
from
'../Filter'
/** * Can always be unfolded (= replaced with the predicate code where `value` is substituted with the actual value) */
export
const
exists = <T>
(
input: T, filter: Filter<T>
) =>
filter
(input)