Experimental - subject to change! Optional Transit-format[1] IPacker implementation for use with Sente. [1] https://github.com/cognitect/transit-format.
Experimental - subject to change! Optional Transit-format[1] IPacker implementation for use with Sente. [1] https://github.com/cognitect/transit-format.
(get-flexi-packer & [?default-fmt])Experimental (pre-alpha): subject to change.
Returns an IPacker implementation that un/packs data with a variable format
determined by the data's size, metadata, or the provided default-fmt when no
metadata is present.
(def fpack (partial pack (get-flexi-packer :edn))) (fpack ^:edn {:a :A :b :B}) => "e{:a :A, :b :B}" (fpack ^:json {:a :A :b :B}) => "j["^ ","~:a","~:A","~:b","~:B"]" (fpack ^:msgpack {:a :A :b :B} => "m£~:a£~:A£~:b£~:B"
Experimental (pre-alpha): subject to change.
Returns an IPacker implementation that un/packs data with a variable format
determined by the data's size, metadata, or the provided `default-fmt` when no
metadata is present.
(def fpack (partial pack (get-flexi-packer :edn)))
(fpack ^:edn {:a :A :b :B}) => "e{:a :A, :b :B}"
(fpack ^:json {:a :A :b :B}) => "j["^ ","~:a","~:A","~:b","~:B"]"
(fpack ^:msgpack {:a :A :b :B} => "m£~:a£~:A£~:b£~:B"cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |