We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 178e71d + 689e736 commit 4b9fddeCopy full SHA for 4b9fdde
src/Data/Semigroup.js
@@ -8,6 +8,8 @@ exports.concatString = function (s1) {
8
9
exports.concatArray = function (xs) {
10
return function (ys) {
11
+ if (xs.length === 0) return ys;
12
+ if (ys.length === 0) return xs;
13
return xs.concat(ys);
14
};
15
0 commit comments