String utilities.
String utilities.
(prune s)
(prune s len)
(prune s len side)
(prune s len side dots)
Returns pruned string that is shortened to the certain length and added dots. The leaving side can be selected from :left, :right, or :both.
Returns pruned string that is shortened to the certain length and added dots. The leaving side can be selected from :left, :right, or :both.
(rand-str len & char-types)
Generates a random string of the certain length. The generated string consists of numbers and letters (i.e. 0-9, A-Z, and a-z). You can change the characters by supplying character types from :number, :letter, :upper-case-letter, or :lower-case-letter.
Generates a random string of the certain length. The generated string consists of numbers and letters (i.e. 0-9, A-Z, and a-z). You can change the characters by supplying character types from :number, :letter, :upper-case-letter, or :lower-case-letter.
(split-at s x)
Returns a vector of substrings split at the position. You can supply an integer or list as the splitting position.
Returns a vector of substrings split at the position. You can supply an integer or list as the splitting position.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close