Skip to content

Instantly share code, notes, and snippets.

@oakmac
Created Sep 5, 2016
Embed
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