Skip to content

Commit

Permalink
😒 chore: Patch sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 27, 2020
1 parent b1d9814 commit 52ab9b0
Show file tree
Hide file tree
Showing 24 changed files with 46 additions and 38 deletions.
4 changes: 4 additions & 0 deletions src/index.js
@@ -0,0 +1,4 @@
export * from './lexicographical' ;
export * from './native' ;
export * from './proxy' ;
export * from './tools' ;
5 changes: 2 additions & 3 deletions src/lexicographical/colexicographical.js
Expand Up @@ -13,7 +13,7 @@
* compare should express an increasing ordering
*/

const colexicographical = function ( compare ) {
export function colexicographical ( compare ) {

/**
* Compares 2 arrays a and b colexicographically.
Expand All @@ -38,6 +38,5 @@ const colexicographical = function ( compare ) {

} ;

} ;
}

exports.colexicographical = colexicographical ;
5 changes: 2 additions & 3 deletions src/lexicographical/fixed/fixedcolexicographical.js
Expand Up @@ -11,7 +11,7 @@
*
*/

const fixedcolexicographical = function ( compare , len ) {
export function fixedcolexicographical ( compare , len ) {

/**
* Compares 2 fixed size arrays a and b of size len colexicographically.
Expand All @@ -31,6 +31,5 @@ const fixedcolexicographical = function ( compare , len ) {

} ;

} ;
}

exports.fixedcolexicographical = fixedcolexicographical ;
5 changes: 2 additions & 3 deletions src/lexicographical/fixed/fixedlexicographical.js
Expand Up @@ -11,7 +11,7 @@
*
*/

const fixedlexicographical = function ( compare , len ) {
export function fixedlexicographical ( compare , len ) {

/**
* Compares 2 fixed size arrays a and b of size len lexicographically.
Expand All @@ -31,6 +31,5 @@ const fixedlexicographical = function ( compare , len ) {

} ;

} ;
}

exports.fixedlexicographical = fixedlexicographical ;
2 changes: 2 additions & 0 deletions src/lexicographical/fixed/index.js
@@ -0,0 +1,2 @@
export * from './fixedcolexicographical' ;
export * from './fixedlexicographical' ;
5 changes: 5 additions & 0 deletions src/lexicographical/index.js
@@ -0,0 +1,5 @@
export * from './colexicographical' ;
export * from './fixed' ;
export * from './lexicographical' ;
export * from './quasi' ;
export * from './ranged' ;
5 changes: 2 additions & 3 deletions src/lexicographical/lexicographical.js
Expand Up @@ -13,7 +13,7 @@
* compare should express an increasing ordering
*/

const lexicographical = function ( compare ) {
export function lexicographical ( compare ) {

/**
* Compares 2 arrays a and b lexicographically.
Expand All @@ -38,6 +38,5 @@ const lexicographical = function ( compare ) {

} ;

} ;
}

exports.lexicographical = lexicographical ;
2 changes: 2 additions & 0 deletions src/lexicographical/quasi/index.js
@@ -0,0 +1,2 @@
export * from './quasicolexicographical' ;
export * from './quasilexicographical' ;
5 changes: 2 additions & 3 deletions src/lexicographical/quasi/quasicolexicographical.js
Expand Up @@ -14,7 +14,7 @@
* compare should express an increasing ordering
*/

const quasicolexicographical = function ( compare ) {
export function quasicolexicographical ( compare ) {

/**
* Compares 2 arrays a and b quasicolexicographically.
Expand All @@ -41,6 +41,5 @@ const quasicolexicographical = function ( compare ) {

} ;

} ;
}

exports.quasicolexicographical = quasicolexicographical ;
5 changes: 2 additions & 3 deletions src/lexicographical/quasi/quasilexicographical.js
Expand Up @@ -13,7 +13,7 @@
* compare should express an increasing ordering
*/

const quasilexicographical = function ( compare ) {
export function quasilexicographical ( compare ) {

/**
* Compares 2 arrays a and b quasilexicographically.
Expand All @@ -40,6 +40,5 @@ const quasilexicographical = function ( compare ) {

} ;

} ;
}

exports.quasilexicographical = quasilexicographical ;
2 changes: 2 additions & 0 deletions src/lexicographical/ranged/index.js
@@ -0,0 +1,2 @@
export * from './rangedcolexicographical' ;
export * from './rangedlexicographical' ;
5 changes: 2 additions & 3 deletions src/lexicographical/ranged/rangedcolexicographical.js
Expand Up @@ -11,7 +11,7 @@
*
*/

const rangedcolexicographical = function ( compare , begin , end ) {
export function rangedcolexicographical ( compare , begin , end ) {

/**
* Compares the range [begin, end[ of 2 arrays a and b colexicographically.
Expand All @@ -31,6 +31,5 @@ const rangedcolexicographical = function ( compare , begin , end ) {

} ;

} ;
}

exports.rangedcolexicographical = rangedcolexicographical ;
5 changes: 2 additions & 3 deletions src/lexicographical/ranged/rangedlexicographical.js
Expand Up @@ -11,7 +11,7 @@
*
*/

const rangedlexicographical = function ( compare , begin , end ) {
export function rangedlexicographical ( compare , begin , end ) {

/**
* Compares the range [begin, end[ of 2 arrays a and b lexicographically.
Expand All @@ -31,6 +31,5 @@ const rangedlexicographical = function ( compare , begin , end ) {

} ;

} ;
}

exports.rangedlexicographical = rangedlexicographical ;
3 changes: 1 addition & 2 deletions src/native/decreasing.js
@@ -1,4 +1,3 @@

const decreasing = ( a , b ) => ( a > b ) ? -1 : ( a === b ) ? 0 : 1 ;
export const decreasing = ( a , b ) => ( a > b ) ? -1 : ( a === b ) ? 0 : 1 ;

exports.decreasing = decreasing ;
3 changes: 1 addition & 2 deletions src/native/increasing.js
@@ -1,4 +1,3 @@

const increasing = ( a , b ) => ( a < b ) ? -1 : ( a === b ) ? 0 : 1 ;
export const increasing = ( a , b ) => ( a < b ) ? -1 : ( a === b ) ? 0 : 1 ;

exports.increasing = increasing ;
2 changes: 2 additions & 0 deletions src/native/index.js
@@ -0,0 +1,2 @@
export * from './decreasing' ;
export * from './increasing' ;
3 changes: 1 addition & 2 deletions src/proxy/attr/attr.js
@@ -1,5 +1,4 @@

const attr = ( compare , key ) => ( a , b ) => compare( a[key] , b[key] ) ;
export const attr = ( compare , key ) => ( a , b ) => compare( a[key] , b[key] ) ;

exports.attr = attr ;

2 changes: 2 additions & 0 deletions src/proxy/attr/index.js
@@ -0,0 +1,2 @@
export * from './attr' ;
export * from './len' ;
3 changes: 1 addition & 2 deletions src/proxy/attr/len.js
@@ -1,4 +1,3 @@

const len = compare => ( a , b ) => compare( a.length , b.length ) ;
export const len = compare => ( a , b ) => compare( a.length , b.length ) ;

exports.len = len ;
3 changes: 1 addition & 2 deletions src/proxy/fn.js
@@ -1,4 +1,3 @@

const fn = ( compare , callable ) => ( a , b ) => compare( callable( a ) , callable( b ) ) ;
export const fn = ( compare , callable ) => ( a , b ) => compare( callable( a ) , callable( b ) ) ;

exports.fn = fn ;
2 changes: 2 additions & 0 deletions src/proxy/index.js
@@ -0,0 +1,2 @@
export * from './attr' ;
export * from './fn' ;
2 changes: 2 additions & 0 deletions src/tools/index.js
@@ -0,0 +1,2 @@
export * from './reverse' ;
export * from './sign' ;
3 changes: 1 addition & 2 deletions src/tools/reverse.js
@@ -1,4 +1,3 @@

const reverse = compare => ( a , b ) => compare( b , a ) ;
export const reverse = compare => ( a , b ) => compare( b , a ) ;

exports.reverse = reverse ;
3 changes: 1 addition & 2 deletions src/tools/sign.js
@@ -1,4 +1,3 @@

const sign = v => v < 0 ? -1 : v > 0 ? 1 : 0 ;
export const sign = v => v < 0 ? -1 : v > 0 ? 1 : 0 ;

exports.sign = sign ;

0 comments on commit 52ab9b0

Please sign in to comment.