extra-iterable
Advanced tools
Comparing version 3.0.100 to 3.0.101
@@ -1228,3 +1228,3 @@ /** | ||
* @param fm map function (v, i, x) | ||
* @returns TODO | ||
* @returns v₀, v₁, ... | vᵢ ∈ x; vᵢ ≠ vⱼ ∀ i, j | ||
* */ | ||
@@ -1231,0 +1231,0 @@ |
16
index.js
@@ -1133,8 +1133,8 @@ 'use strict'; | ||
var fm = fm || IDENTITY; | ||
var s = new Set(), i = -1; | ||
var x1 = new Set(), i = -1; | ||
for (var v of x) { | ||
var v1 = fm(v, ++i, x); | ||
if (s.has(v1)) | ||
if (x1.has(v1)) | ||
continue; | ||
s.add(v1); | ||
x1.add(v1); | ||
yield v; | ||
@@ -1146,9 +1146,9 @@ } | ||
var fm = fm || IDENTITY; | ||
var s = [], i = -1; | ||
x: for (var v of x) { | ||
var x1 = [], i = -1; | ||
NEXTX: for (var v of x) { | ||
var v1 = fm(v, ++i, x); | ||
for (var u1 of s) | ||
for (var u1 of x1) | ||
if (fc(u1, v1) === 0) | ||
continue x; | ||
s.push(v1); | ||
continue NEXTX; | ||
x1.push(v1); | ||
yield v; | ||
@@ -1155,0 +1155,0 @@ } |
{ | ||
"name": "extra-iterable", | ||
"version": "3.0.100", | ||
"version": "3.0.101", | ||
"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
123790