include "dict.m"; dict := load Dictionary Dictionary->PATH; Dict: adt { add: fn(d: self ref Dict, e: (string, string)); delete: fn(d: self ref Dict, k: string); lookup: fn(d: self ref Dict, k: string): string; keys: fn(d: self ref Dict): list of string; };
Computational overhead of lookup and deletion of keys is proportional to the number of pairs in the list.
DICT(2 ) | Rev: Thu Feb 15 14:43:27 GMT 2007 |