simple-squiggle

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

setIsSubset.js (475B)


      1 export var setIsSubsetDocs = {
      2   name: 'setIsSubset',
      3   category: 'Set',
      4   syntax: ['setIsSubset(set1, set2)'],
      5   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.',
      6   examples: ['setIsSubset([1, 2], [3, 4, 5, 6])', 'setIsSubset([3, 4], [3, 4, 5, 6])'],
      7   seealso: ['setUnion', 'setIntersect', 'setDifference']
      8 };