help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtual pet for Emacs


From: Emanuel Berg
Subject: Re: Virtual pet for Emacs
Date: Thu, 05 May 2022 05:19:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

>> (defun points-to-evolution (total-points)
>>   (dolist (points +pet-evolution-tree+)
>>     (if (> (car points) total-points)
>>      (return ;; <------------------- HERE
>>       (nth 1
>>        (assoc (car points) +pet-evolution-tree+))))))
>
> That should be `cl-dolist` and `cl-return`.

Oh, so that's the intention, then rather than that use a list
(higher-order) function!

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]