andFn()
andFn<
T
,A
>(a
): <B
>(b
) => (c
) =>boolean
Logical (Function Result) Conjunction (a(x) && b(x))
.
Type Parameters
T
T
The type of the input value of the functions.
A
A
The return type of the first function.
Parameters
a
(x
) => A
The first function to compare the return of.
Returns
<
B
>(b
): (c
) =>boolean
Type Parameters
B
B
Parameters
b
(y
) => B
Returns
(
c
):boolean
Parameters
c
T
Returns
boolean
See
https://en.wikipedia.org/wiki/Logical_conjunction
Remarks
pure function
Example
andFn((x) => x > 0)((x) => x < 10)(5);
// true