We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b8641 commit 689e736Copy full SHA for 689e736
src/Data/Semigroup.js
@@ -10,6 +10,8 @@ exports.concatString = function (s1) {
10
11
exports.concatArray = function (xs) {
12
return function (ys) {
13
+ if (xs.length === 0) return ys;
14
+ if (ys.length === 0) return xs;
15
return xs.concat(ys);
16
};
17
0 commit comments