Back

with-tag (clj)

(source)

function

(with-tag tag x)
By design, the Clojure shortcut notation `^::closeable-map/fn {}` works only on direct objects, not on bindings, or literal forms. use this function to circumvent this limitation. ``` clojure (meta (let [a {}] ^::closeable-map/fn a)) ;; => nil (meta (let [a {}] (with-tag ::closeable-map/fn a))) ;; => #:piotr-yuxuan.closeable-map{:fn true} ```

Examples