code: 9ferno

ref: be582a0ae8d2473d64fcdf5adc9148b9ba93681a
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;
	};
};