view testdictsetget.rhope @ 170:ac5c2d78663f

Inline calls to If@Boolean when static type info is present
author Mike Pavone <pavone@retrodev.com>
date Sun, 08 May 2011 18:21:19 -0700
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["+"]]
	}}}}
}