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

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

Re: [External] : Re: Appending lists


From: Emanuel Berg
Subject: Re: [External] : Re: Appending lists
Date: Sun, 20 Jun 2021 22:27:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Jean Louis wrote:

>   ‘side-effect-free’ A non-‘nil’ value indicates that the
>   named function is free of side effects (*note What Is
>   a Function::), so the byte compiler may ignore a call
>   whose value is unused. If the property’s value is
>   ‘error-free’, the byte compiler may even delete such
>   unused calls. In addition to byte compiler optimizations,
>   this property is also used for determining function safety
>   (*note Function Safety::).
>
> Now... you could make a list of all functions and separate
> those with `side-effect-free' and those without, though
> I don't think it would guarantee the result.

No thanks, but it can be interesting to know and examine...

I didn't use `nbutlast', `delq', or `delete-dups', and
`remove' only once:

  (defun extract-strings (strings match)
    "From STRINGS, get a list with the parts that MATCH."
    (remove nil
      (mapcar
       (lambda (s) (when (string-match match s) (match-string 1 s)))
       strings) ))

Hm...

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




reply via email to

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