Function: helpful--join-and
helpful--join-and is a natively 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 /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/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)))))