extra-map
Advanced tools
Comparing version 3.1.14 to 3.1.15
@@ -814,2 +814,2 @@ import { MapFunction as MapFunction$1 } from 'extra-iterable'; | ||
export { CombineFunction, CompareFunction, EndFunction, Entries, Lists, MapFunction, ProcessFunction, ReadFunction, ReduceFunction, TestFunction, cartesianProduct, chunk, compare, concat, concat$, count, countAs, difference, difference$, drop, drop$, entries, randomEntry as entry, every, filter, filter$, filterAt, filterAt$, find, findAll, flat, flatMap, forEach, from, from$, from as fromEntries, from$ as fromEntries$, fromKeys, fromLists, fromValues, get, getAll, getPath, has, hasEntry, has as hasKey, hasPath, hasSubset, hasValue, head, intersection, intersection$, intersectionKeys, is, isDisjoint, isEmpty, isEqual, join, randomKey as key, keys, size as length, map, map$, max, maxEntry, min, minEntry, partition, partitionAs, randomEntry, randomKey, randomSubset, range, rangeEntries, reduce, reject, reject$, rejectAt, rejectAt$, remove, remove$, removePath$, search, searchAll, searchValue, searchValueAll, set, set$, setPath$, size, some, randomSubset as subset, subsets, swap, swap$, symmetricDifference, symmetricDifference$, tail, take, take$, union, union$, unionKeys, values, zip }; | ||
export { type CombineFunction, type CompareFunction, type EndFunction, type Entries, type Lists, type MapFunction, type ProcessFunction, type ReadFunction, type ReduceFunction, type TestFunction, cartesianProduct, chunk, compare, concat, concat$, count, countAs, difference, difference$, drop, drop$, entries, randomEntry as entry, every, filter, filter$, filterAt, filterAt$, find, findAll, flat, flatMap, forEach, from, from$, from as fromEntries, from$ as fromEntries$, fromKeys, fromLists, fromValues, get, getAll, getPath, has, hasEntry, has as hasKey, hasPath, hasSubset, hasValue, head, intersection, intersection$, intersectionKeys, is, isDisjoint, isEmpty, isEqual, join, randomKey as key, keys, size as length, map, map$, max, maxEntry, min, minEntry, partition, partitionAs, randomEntry, randomKey, randomSubset, range, rangeEntries, reduce, reject, reject$, rejectAt, rejectAt$, remove, remove$, removePath$, search, searchAll, searchValue, searchValueAll, set, set$, setPath$, size, some, randomSubset as subset, subsets, swap, swap$, symmetricDifference, symmetricDifference$, tail, take, take$, union, union$, unionKeys, values, zip }; |
@@ -29,3 +29,6 @@ 'use strict'; | ||
} | ||
function* subsequences(x, n = -1) { | ||
function subsequences(x, n = -1) { | ||
return [...isubsequences(x, n)]; | ||
} | ||
function* isubsequences(x, n = -1) { | ||
var X = x.length; | ||
@@ -43,4 +46,4 @@ if (n > X) | ||
var y = x.slice(0, -1); | ||
yield* subsequences(y, n); | ||
for (var s of subsequences(y, n - 1)) { | ||
yield* isubsequences(y, n); | ||
for (var s of isubsequences(y, n - 1)) { | ||
s.push(x[X - 1]); | ||
@@ -47,0 +50,0 @@ yield s; |
{ | ||
"name": "extra-map", | ||
"version": "3.1.14", | ||
"version": "3.1.15", | ||
"description": "A group of functions for working with Maps.", | ||
@@ -137,14 +137,14 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^24.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@types/jest": "^29.2.5", | ||
"extra-array": "^3.1.15", | ||
"extra-build": "^2.2.41", | ||
"extra-function": "^1.1.21", | ||
"extra-iterable": "^3.2.12", | ||
"jest": "^29.3.1", | ||
"@rollup/plugin-commonjs": "^25.0.7", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@types/jest": "^29.5.6", | ||
"extra-array": "^4.1.43", | ||
"extra-build": "^2.2.43", | ||
"extra-function": "^1.1.33", | ||
"extra-iterable": "^3.2.19", | ||
"jest": "^29.7.0", | ||
"rollup-plugin-cleanup": "^3.2.1", | ||
"rollup-plugin-dts": "^5.1.1", | ||
"ts-jest": "^29.0.5" | ||
"rollup-plugin-dts": "^6.1.0", | ||
"ts-jest": "^29.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
80627
2240