Dictionary

Interface of kana-kanji dictionary.

Constructors

this
this(string[] keys, string[] values)
Undocumented in source.

Members

Functions

get
string[] get(string key)

Return the value given the key. Content of default_ will be returned if the key doesn't exist among the key set.

Examples

auto dictionary = new Dictionary(["Win", "hot"], ["Lose", "cold"]);
assert(dictionary.get("Win") == ["Lose"]);
assert(dictionary.get("hot") == ["cold"]);
assert(dictionary.get("won") == []);

Meta