UNPKG

@prelude/function

Version:

Function module.

10 lines (7 loc) 204 B
import type { Predicate } from './prelude.js' /** @returns negated predicate. */ const not: <T>(f: Predicate<T>) => Predicate<T> = <T>(f: Predicate<T>) => (a: T) => !f(a) export default not