minor reorganizing
This commit is contained in:
parent
b010bda2d1
commit
3770f16ebd
|
@ -45,11 +45,6 @@
|
||||||
(to-clojure [_]
|
(to-clojure [_]
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
(defn java->clojure
|
|
||||||
"converts a java value to an equivalent value using one of the clojure data types"
|
|
||||||
[x]
|
|
||||||
(to-clojure x))
|
|
||||||
|
|
||||||
(defprotocol ClojureToJava
|
(defprotocol ClojureToJava
|
||||||
(to-java [x]))
|
(to-java [x]))
|
||||||
|
|
||||||
|
@ -76,6 +71,11 @@
|
||||||
(to-java [x]
|
(to-java [x]
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
|
(defn java->clojure
|
||||||
|
"converts a java value to an equivalent value using one of the clojure data types"
|
||||||
|
[x]
|
||||||
|
(to-clojure x))
|
||||||
|
|
||||||
(defn clojure->java
|
(defn clojure->java
|
||||||
"converts a clojure value to an equivalent value using a java object"
|
"converts a clojure value to an equivalent value using a java object"
|
||||||
[x]
|
[x]
|
||||||
|
|
Reference in a new issue