emacs-devel
[Top][All Lists]
Advanced

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

Re: [Request] seq-map and mapcar with arbitrary number of sequences


From: John Wiegley
Subject: Re: [Request] seq-map and mapcar with arbitrary number of sequences
Date: Sat, 10 Oct 2015 10:47:19 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

>>>>>   <address@hidden> writes:

> Furthermore, if anyone feels up to the task, I think it would make sense for
> the builtin mapc and mapcar too.

Those two functions are used in a large number of places. Adding support for a
"&rest seqs" argument rather than "seq" could impact performance, as it now
has to walk a one-element seqs to get the seq it had directly before. I
believe it would add another cons cell to the memory footprint, to package the
argument?

I'm fine with low-level functions preferring simplicity, since we have cl-lib
to provide higher-level versions that does not.

John



reply via email to

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