Subject: Re: bug#34852: 26.1; seq-intersection ignores nil as element

From: "Miguel V. S. Frasson" <[email-masked]>
Date: Thu, 14 Mar 2019 20:08:57 -0300

Hi

Em qui, 14 de mar de 2019 18:43, Stefan Monnier
<[email-masked]> escreveu:
>
> > If ELT=nil, seq-contains currently returns nil anyway;
>
> That's true when `testfn` is nil, but not if you provide
> your own `testfn`.

Not really.

(seq-contains nil '(nil t foo) (lambda (x) t))  ->  nil

It returns *nil* if testfn fails, or *nil* (ELT) if it succeds.

Miguel