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

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

Re: Elisp function that performs numeric computations


From: Sergey Organov
Subject: Re: Elisp function that performs numeric computations
Date: Fri, 21 Jan 2022 20:13:19 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> Sergey Organov wrote:
>
>>> (defun organov (dep top rep)
>>>   (if (<= dep top)
>>>       dep
>>>     (+ rep
>>>        (mod (1- (- dep top))
>>>             (1+ (- top rep)) ))))
>>
>> Nice, thanks! Didn't know me could be cut to such a brief
>> definition though :)
>
> Heh, but here it actually becomes longer than yours!

Heh, but mine has not been called "organov", so it didn't cut *me*, and
then yours did, and now I'm sitting here feeling being much shorter than
I was only yesterday :)

-- Sergey Organov




reply via email to

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