How do I look up a Clojure keyword in IPersistentMap from Java? -
calling clojure library java program. ipersistentmap back.
the keys clojure keywords :name etc.
but seems can't
map.valat(":name");
to pull out in java. i'm guessing that's because keys aren't normal java strings. they? , how can pull data out of ipersistentmap?
have tried using clojure.read
? =>
map.valat(clojure.read(":name"))
or maybe => // (:name my-map) mymap.invoke(clojure.read(":name"));
clojure 1.6 java api https://github.com/clojure/clojure/blob/master/changes.md#21-java-api
clojure's javadoc https://clojure.github.io/clojure/javadoc/
Comments
Post a Comment