(abbreviate s max-length)Shortens string s to max-length using ellipses if needed.
Shortens string `s` to `max-length` using ellipses if needed.
(butlast-string s)Returns a possibly empty string of characters except the last.
Returns a possibly empty string of characters except the last.
(insert s index substring)Inserts a substring into a string s at index.
Inserts a `substring` into a string `s` at `index`.
(maybe-keyword-to-string x)If x is a keyword, returns string. Otherwise, returns x.
If `x` is a keyword, returns string. Otherwise, returns `x`.
(rest-string s)Returns a possibly empty string of characters after the first.
Returns a possibly empty string of characters after the first.
(substring s start-index)(substring s start-index end-index)Returns substring of string s starting at start-index and ending at
optional end-index.
Returns substring of string `s` starting at `start-index` and ending at optional `end-index`.
(trim-end s suffix)Trims all the suffix from the end of string s.
Trims all the `suffix` from the end of string `s`.
(trim-start s prefix)Trims all the prefix from the start of string s.
Trims all the `prefix` from the start of string `s`.
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 |