code: 9ferno

ref: 83246e296ea433b65b9d295b5e08fedd39ff1ab7
dir: /appl/ebook/strmap.m/

View raw version

Strmap: module {
	PATH: con "/dis/ebook/strmap.dis";
	Map: adt {
		i2s:	array of string;
		s2i:	array of list of (string, int);
	
		new:	fn(a: array of string): ref Map;
		s:	fn(map: self ref Map, i: int): string;
		i:	fn(map: self ref Map, s: string): int;
	};
};