Skip to content

Commit

Permalink
Merge pull request #177 from jazmit/patch-3
Browse files Browse the repository at this point in the history
Optimization for Eq Array
  • Loading branch information
garyb authored Jun 7, 2018
2 parents da43e7d + 3b0d306 commit 3fcaeb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Data/Eq.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exports.refEq = function (r1) {
exports.eqArrayImpl = function (f) {
return function (xs) {
return function (ys) {
if (xs === ys) return true;
if (xs.length !== ys.length) return false;
for (var i = 0; i < xs.length; i++) {
if (!f(xs[i])(ys[i])) return false;
Expand Down

0 comments on commit 3fcaeb9

Please sign in to comment.