simple-squiggle

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

map.js (300B)


      1 export var mapDocs = {
      2   name: 'map',
      3   category: 'Matrix',
      4   syntax: ['map(x, callback)'],
      5   description: 'Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.',
      6   examples: ['map([1, 2, 3], square)'],
      7   seealso: ['filter', 'forEach']
      8 };