Mercurial > repos > rhope
comparison testdictsetget.rhope @ 83:27bb051d631c
Initial implementation of Dictionary
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 27 Jul 2010 23:33:31 -0400 |
parents | |
children | e09c2d1d6d5b |
comparison
equal
deleted
inserted
replaced
82:2e2e55fc12f9 | 83:27bb051d631c |
---|---|
1 | |
2 | |
3 Main[] | |
4 { | |
5 dict <- [[[[Dictionary[] | |
6 ]Set["foo", "bar"] | |
7 ]Set["bovine","moo"] | |
8 ]Set["food", "fight"] | |
9 ]Set["fool", "wise"] | |
10 | |
11 Print[[dict]Index["food"]] | |
12 { Print[[dict]Index["bovine"]] | |
13 { Print[[dict]Index["foo"]] | |
14 { Print[[dict]Index["fool"]] }}} | |
15 } | |
16 |