UNPKG
@prelude/function
Version:
latest (0.4.1)
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
0.0.3
Function module.
@prelude/function
/
src
/
not.ts
10 lines
(7 loc)
•
204 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
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