Function: hydra--cycle-radio
hydra--cycle-radio is a byte-compiled function defined in hydra.el.
Signature
(hydra--cycle-radio SYM)
Documentation
Set SYM to the next value in its range.
Source Code
;; Defined in ~/.emacs.d/elpa/hydra-20250316.1254/hydra.el
(defun hydra--cycle-radio (sym)
"Set SYM to the next value in its range."
(let* ((val (symbol-value sym))
(range (get sym 'range))
(i 0)
(l (length range)))
(setq i (catch 'done
(while (< i l)
(if (equal (aref range i) val)
(throw 'done (1+ i))
(cl-incf i)))
(error "Val not in range for %S" sym)))
(set sym
(aref range
(if (>= i l)
0
i)))))