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.
(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
(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} ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close