auto dictionary = new WordObjectMap!(int)(["one", "two"], [1, 2]);
assert(dictionary.get("one") == [1]);
assert(dictionary.get("two") == [2]);
bool error_thrown = false;
try {
dictionary.get("three");
} catch(KeyError e) {
error_thrown = true;
}
assert(error_thrown);