Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Hiccup の文字列を Hiccup ノードに解析するにはどうすればよいですか?
たとえば "[:b 'hello world']"、[:b "hello world"]
"[:b 'hello world']"
[:b "hello world"]
リーダーを使用して文字列をデータ構造に変換します。
user=> (clojure.edn/read-string "[:b 'hello world']") [:b 'hello world']
"文字列を表すために使用する必要があります。
"
user=> (clojure.edn/read-string "[:b \"hello world\"]") [:b "hello world"]