simple-squiggle

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

setDifference.js (498B)


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