diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/jvm/clojure/lang/RT.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jvm/clojure/lang/RT.java b/src/jvm/clojure/lang/RT.java index 58ed95ad..22185176 100644 --- a/src/jvm/clojure/lang/RT.java +++ b/src/jvm/clojure/lang/RT.java @@ -421,7 +421,8 @@ static public Object get(Object coll, Object key){ return nth(coll, n); } - throw new UnsupportedOperationException("get not supported on this type"); + return null; + //throw new UnsupportedOperationException("get not supported on this type"); } static public Object get(Object coll, Object key, Object notFound){ @@ -441,7 +442,9 @@ static public Object get(Object coll, Object key, Object notFound){ int n = ((Number) key).intValue(); return n >= 0 && n < count(coll) ? nth(coll, n) : notFound; } - throw new UnsupportedOperationException("get not supported on this type"); + return notFound; + +// throw new UnsupportedOperationException("get not supported on this type"); } static public Associative assoc(Object coll, Object key, Object val){ |