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
/
implies.ts
11 lines
(8 loc)
•
204 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
type
{
Predicate
}
from
'./prelude.js'
const
implies = <T, U>
(
a
:
Predicate
<T>,
b
:
Predicate
<U>
) =>
(
value
: T & U
) =>
a
(value) ?
b
(value) :
true
export
default
implies