Logo

Programming-Idioms

  • C
  • Rust
use std::collection::HashMap;
m.insert(k, v);
(assoc m k v)

Returns a new map.

New implementation...