UNPKG

130 BJavaScriptView Raw
1function map(x, ft) {
2 var a = new Set();
3 for (var v of x)
4 a.add(ft(v, v, x));
5 return a;
6}
7export default map;