We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Transform values of a set.
Alternatives: map, map$. Similar: map, reduce, filter, filterAt, reject, rejectAt.
function map(x, fm) // x: a set // fm: map function (v, v, x)
const set = require('extra-set'); var x = new Set([1, 2, 3, 4]); set.map(x, v => v * 2); // → Set(4) { 2, 4, 6, 8 }