Skip to content

Commit 572a9db

Browse files
😒 chore: Patch sources.
1 parent 2a7d8fd commit 572a9db

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export * from './inplace' ;
2+
export * from './nodes' ;
3+
export * from './stable' ;
4+
export * from './stack' ;

src/inplace.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
let _inplace = function ( split ) {
2+
export function _inplace ( split ) {
33

44
/**
55
* In-place implementation of radix sort. NOT STABLE.
@@ -30,6 +30,5 @@ let _inplace = function ( split ) {
3030

3131
return inplace ;
3232

33-
} ;
33+
}
3434

35-
exports._inplace = _inplace ;

src/nodes.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
let nodes = function ( lsb , head , hi , lo , si , sj ) {
18+
export function nodes ( lsb , head , hi , lo , si , sj ) {
1919

2020
if ( si >= sj ) return head ;
2121

@@ -49,6 +49,5 @@ let nodes = function ( lsb , head , hi , lo , si , sj ) {
4949

5050
return nodes( lsb , head , hi , lo , si + 1 , sj ) ;
5151

52-
} ;
52+
}
5353

54-
exports.nodes = nodes ;

src/stable.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
let _stable = function ( split ) {
2+
export function _stable ( split ) {
33

44
/**
55
* In-place implementation of radix sort. NOT STABLE.
@@ -39,6 +39,5 @@ let _stable = function ( split ) {
3939

4040
return stable ;
4141

42-
} ;
42+
}
4343

44-
exports._stable = _stable ;

src/stack.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
let stack = function ( lsb , main , hi , lo , si , sj ) {
18+
export function stack ( lsb , main , hi , lo , si , sj ) {
1919

2020
if ( si >= sj ) return ;
2121

@@ -35,6 +35,5 @@ let stack = function ( lsb , main , hi , lo , si , sj ) {
3535

3636
stack( lsb , main , hi , lo , si + 1 , sj ) ;
3737

38-
} ;
38+
}
3939

40-
exports.stack = stack ;

0 commit comments

Comments
 (0)