summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-03-27 12:43:50 +0000
committerRich Hickey <richhickey@gmail.com>2006-03-27 12:43:50 +0000
commit428aa9c52d4cd274b0cfa3097e9661d76a7ea884 (patch)
tree8161150425f296366c62e319f23e5b582a788c3d
parent2081b7e8bbffe24ffa422dfd84262ff35e2aaa35 (diff)
added return value to put()
-rw-r--r--src/org/clojure/runtime/AMap.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/clojure/runtime/AMap.java b/src/org/clojure/runtime/AMap.java
index 822bca6e..853672e3 100644
--- a/src/org/clojure/runtime/AMap.java
+++ b/src/org/clojure/runtime/AMap.java
@@ -19,11 +19,12 @@ public class AMap{
IdentityHashMap attrs;
public static final int INITIAL_SIZE = 7;
-public void put(Symbol key, Object val)
+public Object put(Symbol key, Object val)
{
if(attrs == null)
attrs = new IdentityHashMap(INITIAL_SIZE);
attrs.put(key, val);
+ return val;
}
public Object get(Symbol key)