(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.
(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.
(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close