(dot-notation a-key a-map resource-map)
{:d 4 :e 5 :a {:b 1 :c 2}} -> {:d 4, :e 5, :a {:b 1, :c 2}, :a.b 1, :a.c 2}
{:d 4 :e 5 :a {:b 1 :c 2}} -> {:d 4, :e 5, :a {:b 1, :c 2}, :a.b 1, :a.c 2}
(dot-notation->embed m)
{:a.b 1 :a.c 2} -> {:a [{:b 1 :c 2}]}
{:a.b 1 :a.c 2} -> {:a [{:b 1 :c 2}]}
(embed->dot-notation resource-map)
{:d 4 :e 5 :a [{:b 1 :c 2}]} -> {:d 4 :e 5 :a.b 1 :a.c 2}
{:d 4 :e 5 :a [{:b 1 :c 2}]} -> {:d 4 :e 5 :a.b 1 :a.c 2}
(embed->obj resource-map)
{:d 4 :e 5 :a [{:b 1 :c 2}]} -> {:d 4 :e 5 :a {:b 1 :c 2}}
{:d 4 :e 5 :a [{:b 1 :c 2}]} -> {:d 4 :e 5 :a {:b 1 :c 2}}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close