emacs-devel
[Top][All Lists]
Advanced

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

Re: cl-pushnew and other functions


From: Andreas Schwab
Subject: Re: cl-pushnew and other functions
Date: Mon, 02 Jul 2012 09:25:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

"John Wiegley" <address@hidden> writes:

> Before:
>
>     (defun gnus-harvest-bbdb-complete-stub (stub)
>       (delete
>        nil
>        (mapcar
>         #'(lambda (record)
>             (let ((nets (bbdb-record-mail record)))
>               (and nets
>                    (format "%s <%s>" (bbdb-record-name record)
>                            (car nets)))))
>         (bbdb-search (bbdb-records) stub nil stub))))
>
> After:
>
>     (defun gnus-harvest-bbdb-complete-stub (stub)
>       (loop for record in (bbdb-search (bbdb-records) stub nil stub)
>             for nets = (bbdb-record-mail record)
>             when nets
>             collect (format "%s <%s>" (bbdb-record-name record) (car nets))))
>
> I breathed a sigh of relief there, just reading that again.

I find the latter rather un-lispy.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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