[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp function that performs numeric computations
From: |
Emanuel Berg |
Subject: |
Re: Elisp function that performs numeric computations |
Date: |
Fri, 21 Jan 2022 16:32:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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!
But more clear, was the thought.
So if that's indeed so, that means one should do it, since the
penalty for being long (or, if you'd like, the gain from being
short) is approaching zero to the point (but not to the acutal
point actually) where it is infinitely small :)
--
underground experts united
https://dataswamp.org/~incal
- Elisp function that performs numeric computations, fatiparty, 2022/01/19
- Message not available
- Elisp function that performs numeric computations, fatiparty, 2022/01/19
- Re: Elisp function that performs numeric computations, tomas, 2022/01/19
- Re: Elisp function that performs numeric computations, Marcin Borkowski, 2022/01/19
- Elisp function that performs numeric computations, fatiparty, 2022/01/19
- Re: Elisp function that performs numeric computations, Sergey Organov, 2022/01/20
- Elisp function that performs numeric computations, fatiparty, 2022/01/21
- Re: Elisp function that performs numeric computations, Emanuel Berg, 2022/01/21
- Re: Elisp function that performs numeric computations, Sergey Organov, 2022/01/21
- Re: Elisp function that performs numeric computations,
Emanuel Berg <=
- Re: Elisp function that performs numeric computations, Sergey Organov, 2022/01/21
- Elisp function that performs numeric computations, fatiparty, 2022/01/21
- Re: Elisp function that performs numeric computations, Emanuel Berg, 2022/01/21
- Elisp function that performs numeric computations, fatiparty, 2022/01/21
- Message not available
- Elisp function that performs numeric computations, fatiparty, 2022/01/20
- Re: Elisp function that performs numeric computations, Manuel Giraud, 2022/01/19
- Re: Elisp function that performs numeric computations, Eduardo Ochs, 2022/01/19
- Re: Elisp function that performs numeric computations, Michael Heerdegen, 2022/01/19