In clojure, what is the idiomatic way of converting a keyword:
:some-keyword
in line:
"some-keyword"
use the name for this:
user=> (name :some-keyword) "some-keyword"
As Alex Ott noted, name is the best function for this, clojure.contrib also has a function that you can call for any type: as-str , which does this too:
(str :foo :bar) ;;=> ":foo:bar" (as-str :foo :bar) ;;=> "foobar"
See http://clojure.github.com/clojure-contrib/string-api.html#clojure.contrib.string/as-str