simple-squiggle/node_modules/mathjs/lib/esm/expression/embeddedDocs/function/matrix/map.js

8 lines
300 B
JavaScript

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