Task

Take a combined set of elements and apply a function to each element.




/* for lists or sets */
 
map(sin, [1, 2, 3, 4]);
map(sin, {1, 2, 3, 4});
 
/* for matrices */
 
matrixmap(sin, matrix([1, 2], [2, 4]));