Function: helpful--join-and
helpful--join-and is a byte-compiled function defined in helpful.el.
Signature
(helpful--join-and ITEMS)
Documentation
Join a list of strings with commas and "and".
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--join-and (items)
"Join a list of strings with commas and \"and\"."
(cond
((= (length items) 0)
"")
((= (length items) 1)
(car items))
(t
(format "%s and %s"
(s-join ", " (-drop-last 1 items))
(-last-item items)))))