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

15 lines (14 loc) 614 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setSizeDocs = void 0; 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'] }; exports.setSizeDocs = setSizeDocs;