summaryrefslogtreecommitdiff
path: root/src/cli/runtime/PersistentArrayMap.cs
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-08-04 23:31:33 +0000
committerRich Hickey <richhickey@gmail.com>2006-08-04 23:31:33 +0000
commitcdd429f0d51b754ed0d2f4ab4cd9b90d320a3c0e (patch)
tree7f15ccd00531887f3abc56238fbdd23c585fd902 /src/cli/runtime/PersistentArrayMap.cs
parentee19adc3e5bc9e5b525dac99e9281f3db30d3ece (diff)
renaming
Diffstat (limited to 'src/cli/runtime/PersistentArrayMap.cs')
-rw-r--r--src/cli/runtime/PersistentArrayMap.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/runtime/PersistentArrayMap.cs b/src/cli/runtime/PersistentArrayMap.cs
index 15a67d73..ebea6ebd 100644
--- a/src/cli/runtime/PersistentArrayMap.cs
+++ b/src/cli/runtime/PersistentArrayMap.cs
@@ -98,7 +98,7 @@ public IPersistentMap add(Object key, Object val) {
return create(newArray);
}
-public IPersistentMap put(Object key, Object val) {
+public IPersistentMap assoc(Object key, Object val) {
int i = indexOf(key);
Object[] newArray;
if(i >= 0) //already have key, same-sized replacement
@@ -111,7 +111,7 @@ public IPersistentMap put(Object key, Object val) {
else //didn't have key, grow
{
if (array.Length > HASHTABLE_THRESHOLD)
- return createHT(array).put(key, val);
+ return createHT(array).assoc(key, val);
newArray = new Object[array.Length + 2];
if(array.Length > 0)
Array.Copy(array,0,newArray,2,array.Length);