Skip to content

Commit 7862b56

Browse files
committed
chore: Remove no-longer-used subset dependency from all setXxx functions
1 parent cb04503 commit 7862b56

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

src/function/set/setCartesian.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setCartesian'
5-
const dependencies = ['typed', 'size', 'subset', 'compareNatural']
5+
const dependencies = ['typed', 'size', 'compareNatural']
66

7-
export const createSetCartesian = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, subset, compareNatural }) => {
7+
export const createSetCartesian = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, compareNatural }) => {
88
/**
99
* Create the cartesian product of two (multi)sets.
1010
* Multi-dimension arrays will be converted to single-dimension arrays

src/function/set/setDifference.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten, generalize, identify } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setDifference'
5-
const dependencies = ['typed', 'size', 'subset', 'compareNatural']
5+
const dependencies = ['typed', 'size', 'compareNatural']
66

7-
export const createSetDifference = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, subset, compareNatural }) => {
7+
export const createSetDifference = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, compareNatural }) => {
88
/**
99
* Create the difference of two (multi)sets: every element of set1, that is not the element of set2.
1010
* Multi-dimension arrays will be converted to single-dimension arrays before the operation.

src/function/set/setDistinct.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setDistinct'
5-
const dependencies = ['typed', 'size', 'subset', 'compareNatural', 'Index', 'DenseMatrix']
5+
const dependencies = ['typed', 'size', 'compareNatural', 'Index', 'DenseMatrix']
66

7-
export const createSetDistinct = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, subset, compareNatural }) => {
7+
export const createSetDistinct = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, compareNatural }) => {
88
/**
99
* Collect the distinct elements of a multiset.
1010
* A multi-dimension array will be converted to a single-dimension array before the operation.

src/function/set/setIntersect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten, generalize, identify } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setIntersect'
5-
const dependencies = ['typed', 'size', 'subset', 'compareNatural']
5+
const dependencies = ['typed', 'size', 'compareNatural']
66

7-
export const createSetIntersect = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, subset, compareNatural }) => {
7+
export const createSetIntersect = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, compareNatural }) => {
88
/**
99
* Create the intersection of two (multi)sets.
1010
* Multi-dimension arrays will be converted to single-dimension arrays before the operation.

src/function/set/setIsSubset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten, identify } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setIsSubset'
5-
const dependencies = ['typed', 'size', 'subset', 'compareNatural']
5+
const dependencies = ['typed', 'size', 'compareNatural']
66

7-
export const createSetIsSubset = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, subset, compareNatural }) => {
7+
export const createSetIsSubset = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, compareNatural }) => {
88
/**
99
* Check whether a (multi)set is a subset of another (multi)set. (Every element of set1 is the element of set2.)
1010
* Multi-dimension arrays will be converted to single-dimension arrays before the operation.

src/function/set/setMultiplicity.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setMultiplicity'
5-
const dependencies = ['typed', 'size', 'subset', 'compareNatural']
5+
const dependencies = ['typed', 'size', 'compareNatural']
66

7-
export const createSetMultiplicity = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, subset, compareNatural }) => {
7+
export const createSetMultiplicity = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, compareNatural }) => {
88
/**
99
* Count the multiplicity of an element in a multiset.
1010
* A multi-dimension array will be converted to a single-dimension array before the operation.

src/function/set/setPowerset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setPowerset'
5-
const dependencies = ['typed', 'size', 'subset', 'compareNatural']
5+
const dependencies = ['typed', 'size', 'compareNatural']
66

7-
export const createSetPowerset = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, subset, compareNatural }) => {
7+
export const createSetPowerset = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, compareNatural }) => {
88
/**
99
* Create the powerset of a (multi)set. (The powerset contains very possible subsets of a (multi)set.)
1010
* A multi-dimension array will be converted to a single-dimension array before the operation.

src/function/set/setSymDifference.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setSymDifference'
5-
const dependencies = ['typed', 'size', 'concat', 'subset', 'setDifference']
5+
const dependencies = ['typed', 'size', 'concat', 'setDifference']
66

7-
export const createSetSymDifference = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, concat, subset, setDifference }) => {
7+
export const createSetSymDifference = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, concat, setDifference }) => {
88
/**
99
* Create the symmetric difference of two (multi)sets.
1010
* Multi-dimension arrays will be converted to single-dimension arrays before the operation.

src/function/set/setUnion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { flatten } from '../../utils/array.js'
22
import { factory } from '../../utils/factory.js'
33

44
const name = 'setUnion'
5-
const dependencies = ['typed', 'size', 'concat', 'subset', 'setIntersect', 'setSymDifference']
5+
const dependencies = ['typed', 'size', 'concat', 'setIntersect', 'setSymDifference']
66

7-
export const createSetUnion = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, concat, subset, setIntersect, setSymDifference }) => {
7+
export const createSetUnion = /* #__PURE__ */ factory(name, dependencies, ({ typed, size, concat, setIntersect, setSymDifference }) => {
88
/**
99
* Create the union of two (multi)sets.
1010
* Multi-dimension arrays will be converted to single-dimension arrays before the operation.

0 commit comments

Comments
 (0)