extra-iterable
Advanced tools
Comparing version 3.0.104 to 3.0.105
18
index.js
@@ -1045,18 +1045,18 @@ 'use strict'; | ||
var X = xs.length; | ||
var is = [], os = []; | ||
var ix = [], ax = []; | ||
for (var n = 0, i = 0; n < X; ++n) { | ||
is[i] = xs[i][Symbol.iterator](); | ||
os[i] = is[i].next(); | ||
if (!os[i].done) | ||
ix[i] = xs[i][Symbol.iterator](); | ||
ax[i] = ix[i].next(); | ||
if (!ax[i].done) | ||
++i; | ||
} | ||
while (i > 0) { | ||
var vs = os.map(o => o.value); | ||
var vs = ax.map(o => o.value); | ||
var j = minEntry(vs, fc, fm)[0]; | ||
yield vs[j]; | ||
os[j] = is[j].next(); | ||
if (!os[j].done) | ||
ax[j] = ix[j].next(); | ||
if (!ax[j].done) | ||
continue; | ||
is.splice(j, 1); | ||
os.splice(j, 1); | ||
ix.splice(j, 1); | ||
ax.splice(j, 1); | ||
i--; | ||
@@ -1063,0 +1063,0 @@ } |
{ | ||
"name": "extra-iterable", | ||
"version": "3.0.104", | ||
"version": "3.0.105", | ||
"description": "An iterable is a sequence of values.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1