Created
January 23, 2018 16:16
-
-
Save anonymous/d5eb0a2fa9715c179d3b80377358dd9d to your computer and use it in GitHub Desktop.
Snippet from https://play.nim-lang.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template loadTerms(): untyped = | |
| var KEYMAPSTRING_TABLE = initTable[string, string]() | |
| for term in walkFiles("term/*.txt"): | |
| KEYMAPSTRING_TABLE[term.splitFile().name] = staticRead(term) | |
| loadTerms() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment