Function: hydra--vconcat

hydra--vconcat is a byte-compiled function defined in hydra.el.

Signature

(hydra--vconcat STRS &optional JOINER)

Documentation

Glue STRS vertically. They must be the same height.

JOINER is a function similar to concat.

Source Code

;; Defined in ~/.emacs.d/elpa/hydra-20250316.1254/hydra.el
(defun hydra--vconcat (strs &optional joiner)
  "Glue STRS vertically.  They must be the same height.
JOINER is a function similar to `concat'."
  (setq joiner (or joiner #'concat))
  (mapconcat
   (lambda (s)
     (if (string-match " +$" s)
         (replace-match "" nil nil s)
       s))
   (apply #'cl-mapcar joiner
          (mapcar
           (lambda (s) (split-string s "\n"))
           strs))
   "\n"))