Function: rx--char-alt-union
rx--char-alt-union is a byte-compiled function defined in rx.el.gz.
Signature
(rx--char-alt-union A B)
Documentation
Union of the (INTERVALS . CLASSES) pairs A and B.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/rx.el.gz
(defun rx--char-alt-union (a b)
"Union of the (INTERVALS . CLASSES) pairs A and B."
(let* ((a-cl (cdr a))
(b-cl (cdr b))
(classes (if (and a-cl b-cl)
(let ((acc a-cl))
(dolist (c b-cl)
(unless (memq c a-cl)
(push c acc)))
acc)
(or a-cl b-cl))))
(cons (rx--interval-set-union (car a) (car b)) classes)))