view testdictsetget.rhope @ 99:e09c2d1d6d5b

Got dataflow graph code working in compiler (nworker_c.rhope)
author Mike Pavone <pavone@retrodev.com>
date Fri, 06 Aug 2010 01:42:37 -0400
parents 27bb051d631c
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["+"]]
	}}}}
}