Liking cljdoc? Tell your friends :D
All platforms.

proton.string

String utilities.

String utilities.
raw docstring

pruneclj/s

(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.
sourceraw docstring

rand-strclj/s

(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.
sourceraw docstring

split-atclj/s

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close