diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-06-10 17:40:26 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-06-10 17:40:26 +0000 |
commit | 37ac3ad43d5dd08fddcbe701c82d3f28ac8f6261 (patch) | |
tree | 2733d105257b64b2cee5a1890276cc47d0d4c84a /src/cli/runtime/PersistentArrayIdentityMap.cs | |
parent | 18278e3602831bb711ef1c69b92466c4e9f485ec (diff) |
added PersistentArrayMap.EMPTY, exception decls
Diffstat (limited to 'src/cli/runtime/PersistentArrayIdentityMap.cs')
-rw-r--r-- | src/cli/runtime/PersistentArrayIdentityMap.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cli/runtime/PersistentArrayIdentityMap.cs b/src/cli/runtime/PersistentArrayIdentityMap.cs index b6cc57bc..232a143a 100644 --- a/src/cli/runtime/PersistentArrayIdentityMap.cs +++ b/src/cli/runtime/PersistentArrayIdentityMap.cs @@ -16,7 +16,14 @@ namespace org.clojure.runtime * ArrayMap using identity (==) comparison instead of equals
*/
public class PersistentArrayIdentityMap : PersistentArrayMap {
-public PersistentArrayIdentityMap() {
+
+new public static PersistentArrayIdentityMap EMPTY = new PersistentArrayIdentityMap();
+
+override public IPersistentMap empty() {
+ return EMPTY;
+}
+
+PersistentArrayIdentityMap() {
}
public PersistentArrayIdentityMap(Object[] init) :base(init) {
|