How would express the following JavaScript which takes a set and applies a lambda to each member of the set (resulting in a new set) in mathematical notation?
var set = [1, 2, 3];
var set2 = set.map(function(n){
return n * 2;
});
set2 === [2, 4, 6]; // true