Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Exercises/sequential.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
'use strict';

const seq = f => g => x => 0;
const seq = f => g => {
if (typeof(g) === 'function') return seq(a => f(g(a)));
Comment thread
pottsnoc marked this conversation as resolved.
Outdated
return f(g);
};

module.exports = { seq };
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>",
"license": "MIT",
"scripts": {
"test": "eslint ./Exercises; hpw"
"test": "eslint ./Exercises && hpw"
Comment thread
pottsnoc marked this conversation as resolved.
Outdated
},
"dependencies": {
"eslint": "^6.4.0",
Expand Down