Skip to content

Instantly share code, notes, and snippets.

Created Sep 5, 2016
What would you like to do?
use std::collections::HashMap;
static PARENS: HashMap = HashMap::new();
PARENS.insert("{", "}");
PARENS.insert("}", "{");
PARENS.insert("[", "]");
PARENS.insert("]", "[");
PARENS.insert("(", ")");
PARENS.insert(")", "(");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment