Liking cljdoc? Tell your friends :D

fancy.string


pad-endclj/s

(pad-end string target-length)
(pad-end string target-length padding-item)

right-pad (left-align) string to a total length of target-length by repeating the string or character padding-item at the end. When not provided, padding-item defaults to a single space.

right-pad (left-align) `string` to a total length of `target-length`
by repeating the string or character `padding-item` at the end.
When not provided, `padding-item` defaults to a single space.
sourceraw docstring

pad-startclj/s

(pad-start string target-length)
(pad-start string target-length padding-item)

left-pad (right-align) string to a total length of target-length by repeating the string or character padding-item at the beginning. When not provided, padding-item defaults to a single space.

left-pad (right-align) `string` to a total length of `target-length`
by repeating the string or character `padding-item` at the beginning.
When not provided, `padding-item` defaults to a single space.
sourceraw docstring

repeat-to-lengthclj/s

(repeat-to-length x target-length)

Repeat the string or character x as needed to fill out a string of target-length characters, truncating from the end if the final repeat of x extends past target-length.

Repeat the string or character `x` as needed to fill out a string of `target-length` characters,
truncating from the end if the final repeat of `x` extends past `target-length`.
sourceraw docstring

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

× close