Function: cider--get-sessions-with-same-host

cider--get-sessions-with-same-host is a byte-compiled function defined in cider-connection.el.

Signature

(cider--get-sessions-with-same-host SESSION SESSIONS)

Documentation

Returns a list of SESSIONS with the same host as SESSION.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-connection.el
(defun cider--get-sessions-with-same-host (session sessions)
  "Returns a list of SESSIONS with the same host as SESSION."
  (mapcar #'car
          (seq-filter (lambda (x)
                        (string-equal (cadr x)
                                      (cider--get-host-from-session session)))
                      (cider--make-sessions-list-with-hosts sessions))))