feat:node-modules

This commit is contained in:
houjunxiang
2025-11-24 10:26:18 +08:00
parent 753766893b
commit 8a3e48d856
8825 changed files with 567399 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
export var setCartesianDocs = {
name: 'setCartesian',
category: 'Set',
syntax: ['setCartesian(set1, set2)'],
description: 'Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.',
examples: ['setCartesian([1, 2], [3, 4])'],
seealso: ['setUnion', 'setIntersect', 'setDifference', 'setPowerset']
};

View File

@@ -0,0 +1,8 @@
export var setDifferenceDocs = {
name: 'setDifference',
category: 'Set',
syntax: ['setDifference(set1, set2)'],
description: 'Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',
examples: ['setDifference([1, 2, 3, 4], [3, 4, 5, 6])', 'setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])'],
seealso: ['setUnion', 'setIntersect', 'setSymDifference']
};

View File

@@ -0,0 +1,8 @@
export var setDistinctDocs = {
name: 'setDistinct',
category: 'Set',
syntax: ['setDistinct(set)'],
description: 'Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.',
examples: ['setDistinct([1, 1, 1, 2, 2, 3])'],
seealso: ['setMultiplicity']
};

View File

@@ -0,0 +1,8 @@
export var setIntersectDocs = {
name: 'setIntersect',
category: 'Set',
syntax: ['setIntersect(set1, set2)'],
description: 'Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',
examples: ['setIntersect([1, 2, 3, 4], [3, 4, 5, 6])', 'setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])'],
seealso: ['setUnion', 'setDifference']
};

View File

@@ -0,0 +1,8 @@
export var setIsSubsetDocs = {
name: 'setIsSubset',
category: 'Set',
syntax: ['setIsSubset(set1, set2)'],
description: 'Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',
examples: ['setIsSubset([1, 2], [3, 4, 5, 6])', 'setIsSubset([3, 4], [3, 4, 5, 6])'],
seealso: ['setUnion', 'setIntersect', 'setDifference']
};

View File

@@ -0,0 +1,8 @@
export var setMultiplicityDocs = {
name: 'setMultiplicity',
category: 'Set',
syntax: ['setMultiplicity(element, set)'],
description: 'Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.',
examples: ['setMultiplicity(1, [1, 2, 2, 4])', 'setMultiplicity(2, [1, 2, 2, 4])'],
seealso: ['setDistinct', 'setSize']
};

View File

@@ -0,0 +1,8 @@
export var setPowersetDocs = {
name: 'setPowerset',
category: 'Set',
syntax: ['setPowerset(set)'],
description: 'Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.',
examples: ['setPowerset([1, 2, 3])'],
seealso: ['setCartesian']
};

View File

@@ -0,0 +1,8 @@
export var setSizeDocs = {
name: 'setSize',
category: 'Set',
syntax: ['setSize(set)', 'setSize(set, unique)'],
description: 'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',
examples: ['setSize([1, 2, 2, 4])', 'setSize([1, 2, 2, 4], true)'],
seealso: ['setUnion', 'setIntersect', 'setDifference']
};

View File

@@ -0,0 +1,8 @@
export var setSymDifferenceDocs = {
name: 'setSymDifference',
category: 'Set',
syntax: ['setSymDifference(set1, set2)'],
description: 'Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',
examples: ['setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])', 'setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])'],
seealso: ['setUnion', 'setIntersect', 'setDifference']
};

View File

@@ -0,0 +1,8 @@
export var setUnionDocs = {
name: 'setUnion',
category: 'Set',
syntax: ['setUnion(set1, set2)'],
description: 'Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',
examples: ['setUnion([1, 2, 3, 4], [3, 4, 5, 6])', 'setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])'],
seealso: ['setIntersect', 'setDifference']
};