extra-iterable
Advanced tools
Comparing version 3.0.99 to 3.0.100
@@ -1239,3 +1239,3 @@ /** | ||
* @param fm map function (v, i, x) | ||
* @returns TODO | ||
* @returns x ∪ y = \{v | v ∈ x or v ∈ y\} | ||
* */ | ||
@@ -1242,0 +1242,0 @@ |
12
index.js
@@ -1163,7 +1163,7 @@ 'use strict'; | ||
var fm = fm || IDENTITY; | ||
var s = new Set(); | ||
var x1 = new Set(); | ||
var i = -1, j = -1; | ||
for (var u of x) { | ||
var u1 = fm(u, ++i, x); | ||
s.add(u1); | ||
x1.add(u1); | ||
yield u; | ||
@@ -1173,3 +1173,3 @@ } | ||
var v1 = fm(v, ++j, y); | ||
if (!s.has(v1)) | ||
if (!x1.has(v1)) | ||
yield v; | ||
@@ -1183,8 +1183,8 @@ } | ||
yield* x; | ||
var x1 = [...x].map(fm), j = -1; | ||
y: for (var v of y) { | ||
var x1 = [...map(x, fm)], j = -1; | ||
NEXTY: for (var v of y) { | ||
var v1 = fm(v, ++j, y); | ||
for (var u1 of x1) | ||
if (fc(u1, v1) === 0) | ||
continue y; | ||
continue NEXTY; | ||
yield v; | ||
@@ -1191,0 +1191,0 @@ } |
{ | ||
"name": "extra-iterable", | ||
"version": "3.0.99", | ||
"version": "3.0.100", | ||
"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
123714