diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-08-11 16:30:07 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-08-11 16:30:07 +0000 |
commit | a6aa6a69dd251e2a47fe6c1ef17c4e56c0dc5314 (patch) | |
tree | 575212baa2c20f1699dc9d58b07f7dfd6017a781 /src/cli/runtime/PersistentTreeMap.cs | |
parent | 0addb40116e9a293c5f0a0f0040a9f4862964c92 (diff) |
got rid of PersistentListMap
Diffstat (limited to 'src/cli/runtime/PersistentTreeMap.cs')
-rw-r--r-- | src/cli/runtime/PersistentTreeMap.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cli/runtime/PersistentTreeMap.cs b/src/cli/runtime/PersistentTreeMap.cs index 77be3e9f..743cb06d 100644 --- a/src/cli/runtime/PersistentTreeMap.cs +++ b/src/cli/runtime/PersistentTreeMap.cs @@ -789,7 +789,7 @@ public void Reset() #endregion
} - /*
+ //*
[STAThread] static public void Main(String[] args){ if(args.Length != 1)
@@ -804,9 +804,9 @@ static public void Main(String[] args){ Array.Reverse(ints); Console.WriteLine("Building set");
//IPersistentMap set = new PersistentTree();
- IPersistentMap set = new PersistentArrayMap();
+ //IPersistentMap set = new PersistentArrayMap();
//IPersistentMap set = new PersistentListMap();
- //IPersistentMap set = new PersistentHashtableMap(1001);
+ IPersistentMap set = new PersistentHashtableMap(1001);
//IPersistentMap set = new PersistentHybridMap(1001); //for(int i = 0; i < ints.Length; i++) // { @@ -817,7 +817,7 @@ static public void Main(String[] args){ for (int i = 0; i < ints.Length; i++) { Object anInt = ints[i]; - set = set.put(anInt, anInt); + set = (IPersistentMap) set.assoc(anInt, anInt); }
foreach(IMapEntry e in set) @@ -831,7 +831,7 @@ static public void Main(String[] args){ for(int i = 0; i < ints.Length/2; i++) { Object anInt = ints[i]; - set = set.remove(anInt); + set = set.without(anInt); }
Console.WriteLine("Time: " + (DateTime.Now - start));
|