Consider the following simple JavaScript function, which maps an array of numbers to the string number {number}:
function a(n){
return `number ${n}`
}
[1,2,3].map(a);
// 'number 1', 'number 2', 'number 3'
What is the equivalent function in PureScript?
Searching Google or PureScript by Example for "Array Map" does not return any snippets or examples.
What is the PureScript equivalent, in the form of a PureScript snippet, to the above simple JavaScript function?