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

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

Re: [External] : Re: Testing whether a list contains at least one non-ni


From: Emanuel Berg
Subject: Re: [External] : Re: Testing whether a list contains at least one non-nil element
Date: Tue, 25 Oct 2022 19:44:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Drew Adams wrote:

> (cl-member-if-not #'null toto)

Close

  (cl-member-if-not #'null '(nil nil)) ; nil
  (cl-member-if-not #'null '(nil 2))   ; (2)

But

  (cl-position-if-not #'null '(nil nil)) ; nil
  (cl-position-if-not #'null '(nil 2))   ; 1

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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