UNPKG
@prelude/cmp
Version:
latest (4.2.0)
4.2.0
4.1.0
4.0.0
3.0.0
2.0.0
1.5.0
1.4.3
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
Cmp module.
@prelude/cmp
/
mjs
/
of-gt.js
9 lines
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ asc, eq, dsc }
from
'./prelude.js'
;
/**
@returns
comparision function from greater-than function. */
const
ofGt
= (
gt
) =>
(
a, b
) =>
gt
(a, b) ? dsc :
gt
(b, a) ? asc : eq;
export
default
ofGt;
//# sourceMappingURL=of-gt.js.map