[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using list with append
From: |
Emanuel Berg |
Subject: |
Re: Using list with append |
Date: |
Wed, 09 Nov 2022 16:26:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Heime wrote:
> (defun pmchart selectr nc)
Function names: use-normal-language
Argument names: short forms that are obvious encouraged, e.g.
cmd, len, lang, beg, end, src, dst, and so on, otherwise use
normal language there as well
> "TODO."
Remove, it's better not to have a docstring than to have one
that doesn't document anything, (checkdoc-current-buffer t)
will also tell you that one is formally incorrect.
> (pmchart '("Peter" "Paul") [3 2] 5)
>
> gives the list
>
> '(("Peter" ("xxxxx" "xxxxx" "xxxxx" ""))
> ("Paul" ("xxxxx" "xxxxx" "" "")))
If the list of X-Strings are associated with the names, it is
better to have a function that does one such item, so that
would be called like this, probably
(x-name-item "Peter" 3 5)
then to do the whole table for each line there would be one
such call.
So the semantics of what you are doing is implemented
in/enforced by the code that actually does the work, as well,
if you will ...
--
underground experts united
https://dataswamp.org/~incal