Mercurial > repos > rhope
view testdictsetget.rhope @ 124:8aedae4f4ddd
Add support for Int32 as Dictionary key
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 28 Oct 2010 21:05:50 -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["+"]] }}}} }