Skip to content

Instantly share code, notes, and snippets.

@brson
Created September 18, 2012 04:47
Show Gist options
  • Save brson/3741314 to your computer and use it in GitHub Desktop.
Save brson/3741314 to your computer and use it in GitHub Desktop.
let mut m = ~LinearMap();
m.insert(1, 2);
m.insert(2, 4);
// Freeze it
let m = move m;
// Thaw it
let mut m = move m;
// Freeze and ARC
let arc = ARC(move m);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment