simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

setMultiplicity.js (576B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.setMultiplicityDocs = void 0;
      7 var setMultiplicityDocs = {
      8   name: 'setMultiplicity',
      9   category: 'Set',
     10   syntax: ['setMultiplicity(element, set)'],
     11   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.',
     12   examples: ['setMultiplicity(1, [1, 2, 2, 4])', 'setMultiplicity(2, [1, 2, 2, 4])'],
     13   seealso: ['setDistinct', 'setSize']
     14 };
     15 exports.setMultiplicityDocs = setMultiplicityDocs;