Skip to content

Commit aec6480

Browse files
😒 chore: Patch sources.
1 parent 9b8ae08 commit aec6480

File tree

11 files changed

+29
-36
lines changed

11 files changed

+29
-36
lines changed

src/boolean.js

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

2-
let truth = x => true ;
3-
let untruth = x => false ;
2+
export let truth = x => true ;
3+
export let untruth = x => false ;
44

5-
exports.truth = truth ;
6-
exports.untruth = untruth ;

src/conjunction.js

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

2-
let conjunction = ( p , q ) => x => p( x ) && q( x ) ;
2+
export let conjunction = ( p , q ) => x => p( x ) && q( x ) ;
33

4-
exports.conjunction = conjunction ;

src/conjunctions.js

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

22
// could use recursion
33

4-
let conjunctions = function ( predicates ) {
4+
export function conjunctions ( predicates ) {
55

66
return function ( input ) {
77

@@ -15,6 +15,5 @@ let conjunctions = function ( predicates ) {
1515

1616
} ;
1717

18-
} ;
18+
}
1919

20-
exports.conjunctions = conjunctions ;

src/disjunction.js

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

2-
let disjunction = ( p , q ) => x => p( x ) || q( x ) ;
2+
export let disjunction = ( p , q ) => x => p( x ) || q( x ) ;
33

4-
exports.disjunction = disjunction ;
54

src/disjunctions.js

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

22
// could use recursion
33

4-
let disjunctions = function ( predicates ) {
4+
export function disjunctions ( predicates ) {
55

66
return function ( input ) {
77

@@ -15,6 +15,5 @@ let disjunctions = function ( predicates ) {
1515

1616
} ;
1717

18-
} ;
18+
}
1919

20-
exports.disjunctions = disjunctions ;

src/equivalence.js

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

2-
let equivalence = ( p , q ) => x => p( x ) === q( x ) ;
2+
export let equivalence = ( p , q ) => x => p( x ) === q( x ) ;
33

4-
exports.equivalence = equivalence ;
54

src/implication.js

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

2-
let implication = ( p , q ) => x => ! p( x ) || q( x ) ;
2+
export let implication = ( p , q ) => x => ! p( x ) || q( x ) ;
33

4-
exports.implication = implication ;

src/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export * from './boolean.js';
2+
export * from './conjunction.js';
3+
export * from './conjunctions.js';
4+
export * from './disjunction.js';
5+
export * from './disjunctions.js';
6+
export * from './equivalence.js';
7+
export * from './implication.js';
8+
export * from './negation.js';
9+
export * from './numbers.js';
10+
export * from './operators.js';

src/negation.js

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

2-
let negation = p => x => ! p( x ) ;
2+
export let negation = p => x => ! p( x ) ;
33

4-
exports.negation = negation ;

src/numbers.js

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

2-
let divides = y => x => y % x === 0 ;
3-
let divisible = y => x => x % y === 0 ;
2+
export let divides = y => x => y % x === 0 ;
3+
export let divisible = y => x => x % y === 0 ;
44

5-
exports.divides = divides ;
6-
exports.divisible = divisible ;

0 commit comments

Comments
 (0)