[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (*) -> 1
From: |
Emanuel Berg |
Subject: |
Re: (*) -> 1 |
Date: |
Tue, 24 Jan 2023 03:33:56 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Jean Louis wrote:
> (defun elbf-char (n)
> (concat "(+ " (string-replace "*" "(*)" (make-string n ?*)) ")"))
>
> (defun elbf-string (string)
> (let ((list (string-to-list string)))
> (with-temp-buffer
> (insert "(string ")
> (while list
> (insert (elbf-char (pop list))))
> (insert ")")
> (buffer-string))))
Not bad!
Only: Hard coding the same data several times -> court martial.
But it's not like there is real punishment or anything ...
--
underground experts united
https://dataswamp.org/~incal
- Re: (*) -> 1, (continued)
- Re: (*) -> 1, Jean Louis, 2023/01/21
- Re: (*) -> 1, Tassilo Horn, 2023/01/21
- Re: (*) -> 1, Emanuel Berg, 2023/01/22
- Re: (*) -> 1, Jean Louis, 2023/01/22
- Re: (*) -> 1, Emanuel Berg, 2023/01/22
- RE: [External] : Re: (*) -> 1, Drew Adams, 2023/01/22
- Re: (*) -> 1, Akib Azmain Turja, 2023/01/22
- Re: (*) -> 1, Emanuel Berg, 2023/01/22
- Re: (*) -> 1, Jean Louis, 2023/01/23
- Re: (*) -> 1, Jean Louis, 2023/01/23
- Re: (*) -> 1,
Emanuel Berg <=