Function: s-pad-left
s-pad-left is a byte-compiled function defined in s.el.
Signature
(s-pad-left LEN PADDING S)
Documentation
If S is shorter than LEN, pad it with PADDING on the left.
Source Code
;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-pad-left (len padding s)
"If S is shorter than LEN, pad it with PADDING on the left."
(declare (pure t) (side-effect-free t))
(let ((extra (max 0 (- len (length s)))))
(concat (make-string extra (string-to-char padding))
s)))