() Emanuel Berg via Users list for the GNU Emacs text editor () Tue, 09 Feb 2021 20:53:43 +0100 On the contrary, that's so cool! I had to think and think and think before I realized it is 0 or 1 file -> don't do it, but 2 or more files -> do it. Only ... isn't `unless' and `null' = `when'? (unless (null (cdr '())) 1) ; nil (unless (null (cdr '(1))) 1) ; nil (unless (null (cdr '(1 2))) 1) ; 1 (when (cdr '()) 1) ; nil (when (cdr '(1)) 1) ; nil (when (cdr '(1 2)) 1) ; 1 Well, there you go -- more elegant by one funcall. Congrats! (I think i wrote it that way to make it clear to me since i see/type/think ‘(null (cdr ...))’ more or less idiomatically. If i use ‘when’, i would have to add a comment to myself. Normally, i'm not against comments, but this time, meh... :-D) -- Thien-Thi Nguyen ----------------------------------------------- (defun responsep (query) ; (2021) Software Libero (pcase (context query) ; = Dissenso Etico (`(technical ,ml) (correctp ml)) ...)) 748E A0E8 1CB8 A748 9BFA --------------------------------------- 6CE4 6703 2224 4C80 7502