Skip to content

Instantly share code, notes, and snippets.

@oakmac
Created September 5, 2016 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oakmac/54ffcb57e898217fb3031388b359d772 to your computer and use it in GitHub Desktop.
Save oakmac/54ffcb57e898217fb3031388b359d772 to your computer and use it in GitHub Desktop.
static PARENS: HashMap = HashMap::new();
fn set_parens() {
PARENS.insert("{", "}");
PARENS.insert("}", "{");
PARENS.insert("[", "]");
PARENS.insert("]", "[");
PARENS.insert("(", ")");
PARENS.insert(")", "(");
}
set_parens();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment