UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

7 lines (5 loc) 230 B
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)