Function: s-chop-right

s-chop-right is a byte-compiled function defined in s.el.

Signature

(s-chop-right LEN S)

Documentation

Remove the last LEN chars from S.

Source Code

;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-chop-right (len s)
  "Remove the last LEN chars from S."
  (let ((l (length s)))
    (if (> l len)
        (substring s 0 (- l len))
      "")))