lml-main
Version:
This is now a mono repository published into many standalone packages.
13 lines (12 loc) • 325 B
JavaScript
module.exports = {
'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']
};