view testdictsetget.rhope @ 120:cd25171e1bb2

Use List for Subsets instead of a Dictionary for performance reasons. Fix issue with List literals. Compiled compiler is now self-hosting.
author Mike Pavone <pavone@retrodev.com>
date Thu, 21 Oct 2010 23:55:15 -0400
parents e09c2d1d6d5b
children
line wrap: on
line source



Main[]
{
	dict <- [[[[Dictionary[]
	]Set["foo", "bar"]
	]Set["bovine","moo"]
	]Set["food", "fight"]
	]Set["fool", "wise"]

	Print[[dict]Index["food"]]
	{ Print[[dict]Index["bovine"]]
	{ Print[[dict]Index["foo"]]
	{ Print[[dict]Index["fool"]]
	{
		Print[[[[Dictionary[]
		]Set["+@Foo", "bar"]
		]Set["+", "add"]
		]Index["+"]]
	}}}}
}