Method code for $trie.match_exact()

[Turn on line numbering]
arg trie, key;
var n, t;

if (trie[1] && key == trie[1][1])
    return trie[1];
if (!key || !(n = key[1] in trie[2]))
    throw(~keynf, "Trie: key not found.");
(> (t = .match_exact(trie[n + 2], key.subrange(2))) <);
t = t.replace(1, key[1] + t[1]);
return t;

["// Miroslav Silovic ", "// Created 09-May-1995 as a part of ColdCore, see: @help Credit"]

the Cold Dark