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

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

Re: member returns list


From: Barry Margolin
Subject: Re: member returns list
Date: Fri, 04 Sep 2015 13:26:03 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <mailman.502.1441349470.19560.help-gnu-emacs@gnu.org>,
 Marcin Borkowski <mbork@mbork.pl> wrote:

> On 2015-09-04, at 03:03, Emanuel Berg <embe8573@student.uu.se> wrote:
> 
> > Marcin Borkowski <mbork@mbork.pl> writes:
> >
> >> memq
> >
> > Hot!
> >
> > Love Emacs and Lisp inconsistency!
> 
> assq
> delq
> memq
> rassq
> remq
> 
> ...inconsistency?

FYI, all those names were inherited from Maclisp. The q at the end of 
the names reflects that they use eq as the comparison function.

Conversely, the functions that use equal have long names like delete, 
member, remove. The consistency is that the fully-spelled-out list 
functions use the fully-spelled-out comparison.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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