diff options
| author | Rich Hickey <richhickey@gmail.com> | 2006-08-05 15:18:43 +0000 |
|---|---|---|
| committer | Rich Hickey <richhickey@gmail.com> | 2006-08-05 15:18:43 +0000 |
| commit | db58898d1d44d8025208bb5f0b2c4a493a5cdb43 (patch) | |
| tree | cad6d19295174af8a5e43f8f8c9b222232123965 /src/cli/runtime/MapEntry.cs | |
| parent | cfbe0fe8a1adaf7b16f37d92545c89230256221d (diff) | |
renamed remove, add
Diffstat (limited to 'src/cli/runtime/MapEntry.cs')
| -rw-r--r-- | src/cli/runtime/MapEntry.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/runtime/MapEntry.cs b/src/cli/runtime/MapEntry.cs index 0e86f56a..13051107 100644 --- a/src/cli/runtime/MapEntry.cs +++ b/src/cli/runtime/MapEntry.cs @@ -52,13 +52,13 @@ override public Object get(Object key) { return RT.equal(_key, key)?_val:null;
}
-override public IPersistentMap add(Object key, Object val) {
+override public IPersistentMap assocEx(Object key, Object val) {
if(RT.equal(_key, key))
throw new Exception("Key already present");
return assoc(key, val);
}
-override public IPersistentMap remove(Object key) {
+override public IPersistentMap without(Object key) {
if(RT.equal(_key, key))
return (IPersistentMap) PersistentArrayMap.EMPTY.withMeta(_meta);
return this;
|
