Some misc. utility functions. These are primarily meant for internal use, and are subject to relocation and removal in the future.
You have been warned. Changes to this ns (or its complete removal) will not be considered breaking changes to the library, and no mention of said changes will even appear in the changelog.
Some misc. utility functions. These are primarily meant for internal use, and are subject to relocation and removal in the future. You have been warned. Changes to this ns (or its complete removal) will not be considered breaking changes to the library, and no mention of said changes will even appear in the changelog.
Bind to true in CLJS to use a faster base64 encode/decode, but one that will not work correctly on data that has alternate character encodings.
Bind to true in CLJS to use a faster base64 encode/decode, but one that will not work correctly on data that has alternate character encodings.
(ast->query ast)
Workaround for bug in EQL 0.0.9 and earlier
Workaround for bug in EQL 0.0.9 and earlier
(base64-encode str)
Encode a string to UTF-8 and encode the result to base 64
Encode a string to UTF-8 and encode the result to base 64
(deep-merge & xs)
Merges nested maps without overwriting existing keys.
Merges nested maps without overwriting existing keys.
(destructured-keys m)
Calculates the keys that are being extracted in a legal map destructuring expression.
m
: A map containing legal CLJ destructurings, like {:keys [a] x :x ::keys [y]}
Returns a set of all keywords that are destructured in the map.
Example:
(destructured-keys {:a/keys [v] sym :other-key}) => #{:a/v :other-key}
Calculates the keys that are being extracted in a legal map destructuring expression. - `m`: A map containing legal CLJ destructurings, like `{:keys [a] x :x ::keys [y]}` Returns a set of all keywords that are destructured in the map. Example: ``` (destructured-keys {:a/keys [v] sym :other-key}) => #{:a/v :other-key} ```
(dev-check-query query component-name-fn)
Runtime check that the (typically root) query looks valid (though the Spec it uses might be both more strict / more lax than the code so do not take it absolutely.
Runtime check that the (typically root) query looks valid (though the Spec it uses might be both more strict / more lax than the code so do not take it absolutely.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close