def buildmap(inx):
	"""builds the map from the symbol set above, every symbol as a unicode char"""
	import itertools
	from collections import defaultdict
	d = defaultdict(itertools.count().next)
	for x in inx: 
		d[x]
	return d
builds the map from the symbol set above, every symbol as a unicode char
recipes/Python/576806_Regular_Expressigeneric_sequences/recipe-576806.py