Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Rust
std::mem::replace(&mut x, v);
utility
std::exchange(x, v);

New implementation...
< >
pi