Skip to content
Subhajit Sahu edited this page May 9, 2020 · 15 revisions

Exchanges two values. 🏃 📼 📦 🌔

map.swap$(x, k, l);
// x: a map (updated)
// k: a key
// l: another key
// --> x
const map = require('extra-map');
Clone this wiki locally