to be consistent, we should be converting keys this way here too

This commit is contained in:
Gered 2014-03-02 10:21:11 -05:00
parent ce93336731
commit f2a864b2e1

View file

@ -15,9 +15,7 @@
(.entrySet)
(reduce
(fn [m [k v]]
; TODO: perhaps we should be doing (keyword k) instead? i don't like that it technically is not an
; exact conversion if we do it that way though, even if it is more idiomatic for clojure ...
(assoc m k (to-clojure v)))
(assoc m (to-clojure k) (to-clojure v)))
{})))
java.lang.Number
@ -36,6 +34,10 @@
(to-clojure [x]
x)
clojure.lang.Keyword
(to-clojure [x]
x)
java.lang.Object
(to-clojure [x]
(-> x