emacs-devel
[Top][All Lists]
Advanced

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

Re: seq-some-p and nil


From: Stefan Monnier
Subject: Re: seq-some-p and nil
Date: Mon, 07 Sep 2015 11:19:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> If the function is not supposed to return non-nil if an element is
>> matched but the element itself, then would it be ok? OTOH there would be
>> again no way to differentiate between no element found and nil being
>> found in the sequence.

Returning what FUN returned seems like a better choice.

If you need the element matched, then you can simply arrange for FUN
to return the element.


        Stefan



reply via email to

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