Skip to content

Instantly share code, notes, and snippets.

@oakmac
Created January 31, 2016 05:40
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/fd87a42810b643d74a21 to your computer and use it in GitHub Desktop.
Save oakmac/fd87a42810b643d74a21 to your computer and use it in GitHub Desktop.
kotlin hashmap?
val PARENS = HashMap<String, String>
PARENS.put("{", "}")
PARENS.put("}", "{")
PARENS.put("[", "]")
PARENS.put("]", "[")
PARENS.put("(", ")")
PARENS.put(")", "(")
@oakmac
Copy link
Author

oakmac commented Jan 31, 2016

val PARENS = hashMapOf(
    "{" to "}",
    "}" to "{",
    "[" to "]",
    "]" to "[",
    "(" to ")",
    ")" to "(")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment