all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: re-make-list
Date: Mon, 10 Feb 2020 09:02:50 +0100	[thread overview]
Message-ID: <20200210080250.GB31564@tuxteam.de> (raw)
In-Reply-To: <87d0amj3jn.fsf@ebih.ebihd>

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

On Mon, Feb 10, 2020 at 08:37:48AM +0100, Emanuel Berg via Users list for the GNU Emacs text editor wrote:
> tomas wrote:
> 
> > In your case, since you build a fresh list
> > which nobody else sees, you might get away
> > returning (nreverse matches) without the
> > Functional Gods frowning at you ;-)
> 
> Actually it will be visible indeed :)

It seems I was unclear. I was talking about your variable
"matches", which you create whithin the function and let
grow with each match found. Since that variable is not
visible outside the function's scope, you can afford the
(potentially) more efficient nreverse.

Sorry for the confusion. Just ignore if still unclear :)

Cheers
-- tomás

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2020-02-10  8:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-10  5:11 re-make-list Emanuel Berg via Users list for the GNU Emacs text editor
2020-02-10  6:58 ` re-make-list tomas
2020-02-10  7:37   ` re-make-list Emanuel Berg via Users list for the GNU Emacs text editor
2020-02-10  8:02     ` tomas [this message]
2020-02-10  8:48       ` re-make-list Emanuel Berg via Users list for the GNU Emacs text editor
2020-02-10  9:18         ` re-make-list tomas
2020-02-10 13:27         ` re-make-list Stefan Monnier
2020-02-10 14:04           ` re-make-list tomas
2020-02-10 19:40             ` re-make-list Emanuel Berg via Users list for the GNU Emacs text editor
2020-02-10 23:28           ` re-make-list Emanuel Berg via Users list for the GNU Emacs text editor
2020-02-11  3:44             ` re-make-list Emanuel Berg via Users list for the GNU Emacs text editor
2020-02-11 14:30               ` re-make-list Stefan Monnier
2020-02-11 16:47                 ` re-make-list Emanuel Berg via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200210080250.GB31564@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.