@total-order/lex

1.0.0 • Public • Published

🍡 @total-order/lex

Lexicographical comparison functions for JavaScript. See docs.

import { reversed } from '@total-order/reversed' ;
import { lexicographical } from '@total-order/lex' ;
import { increasing } from '@total-order/primitive' ;
let order = reversed( lexicographical( increasing ) ) ;
order( [ 1 , 1 ] , [ 1 , 2 ] )  >  0 ; // true

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

📜 References

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    30
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    30
  • 0.0.1
    1
  • 0.0.0
    1

Package Sidebar

Install

npm i @total-order/lex

Weekly Downloads

32

Version

1.0.0

License

AGPL-3.0

Unpacked Size

531 kB

Total Files

16

Last publish

Collaborators

  • raskat
  • aureooms