Casing functions, from/to camel, kebab, pascal and snake. An optional coersion function can be provided to change the end result into another type, (typically keyword, symbol or simliar).
A lot of the code could have been generated, but keeing it explicit was an explicit choise to avoid macros and similar in this code.
Casing functions, from/to camel, kebab, pascal and snake. An optional coersion function can be provided to change the end result into another type, (typically keyword, symbol or simliar). A lot of the code could have been generated, but keeing it explicit was an explicit choise to avoid macros and similar in this code.
(convert split-fn map-fn join-fn x)
(convert split-fn map-fn join-fn coerce-fn x)
Converts a string or an ident, and either keeps the type or coerce it.
Supports qualified idents. Uses the provided functions to split, map, join and coerce.
Converts a string or an ident, and either keeps the type or coerce it. Supports qualified idents. Uses the provided functions to split, map, join and coerce.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close