UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

18 lines (17 loc) 516 B
export const 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' ] }