diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-03-27 12:43:50 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-03-27 12:43:50 +0000 |
commit | 428aa9c52d4cd274b0cfa3097e9661d76a7ea884 (patch) | |
tree | 8161150425f296366c62e319f23e5b582a788c3d /src | |
parent | 2081b7e8bbffe24ffa422dfd84262ff35e2aaa35 (diff) |
added return value to put()
Diffstat (limited to 'src')
-rw-r--r-- | src/org/clojure/runtime/AMap.java | 3 |
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) |