|
From: | Miguel V. S. Frasson |
Subject: | bug#34852: 26.1; seq-intersection ignores nil as element |
Date: | Thu, 14 Mar 2019 20:45:55 -0300 |
Hi
Em qui, 14 de mar de 2019 18:43, Stefan Monnier
<monnier@iro.umontreal.ca> 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
[Prev in Thread] | Current Thread | [Next in Thread] |