(collapse-whitespace s)Replaces a trimmed version of 's' with all consecutive runs of whitespace characters replaced with a single space.
Replaces a trimmed version of 's' with all consecutive runs of whitespace characters replaced with a single space.
(ensure-ends-with s suffix)Add 'suffix' to 's' if 's' does not already end with 'suffix'
Add 'suffix' to 's' if 's' does not already end with 'suffix'
(ensure-starts-with s prefix)Add 'prefix' to 's' if 's' does not already start with 'prefix'
Add 'prefix' to 's' if 's' does not already start with 'prefix'
(numeric? s)Returns a boolean indicating whether 's' represents a numeric value
Returns a boolean indicating whether 's' represents a numeric value
(split s re & {:keys [quote-chars]})Splits a string 's' on the regular expression 're'. Optional :quote-chars can be provided to avoid splitting the string within quoted sections.
Splits a string 's' on the regular expression 're'. Optional :quote-chars can be provided to avoid splitting the string within quoted sections.
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 |