RosettaCodeData/Task/Loops-Break/Emacs-Lisp/loops-break.el
2026-04-30 12:34:36 -04:00

10 lines
243 B
EmacsLisp

(defun wait_10 ()
(catch 'loop-break
(while 't
(let ((math (random 19)))
(if (= math 10)
(progn (message "Found value: %d" math)
(throw 'loop-break math))
(message "current number is: %d" math) ) ) ) ) )
(wait_10)