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: Tue Mar 31 02:42:39 GMT 2015 |