emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/dash 565055e 229/316: * dash.el (---truthy?): Simplify.


From: ELPA Syncer
Subject: [elpa] externals/dash 565055e 229/316: * dash.el (---truthy?): Simplify.
Date: Mon, 15 Feb 2021 15:58:06 -0500 (EST)

branch: externals/dash
commit 565055e95cdf51f597d8e5b794e2b46efe36d854
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    * dash.el (---truthy?): Simplify.
---
 dash.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dash.el b/dash.el
index 0097b42..0251288 100644
--- a/dash.el
+++ b/dash.el
@@ -860,9 +860,10 @@ See also: `-last-item'."
   "Counts the number of items in LIST where (PRED item) is non-nil."
   (--count (funcall pred it) list))
 
-(defun ---truthy? (val)
+(defun ---truthy? (obj)
+  "Return OBJ as a boolean value (t or nil)."
   (declare (pure t) (side-effect-free t))
-  (not (null val)))
+  (and obj t))
 
 (defmacro --any? (form list)
   "Anaphoric form of `-any?'."



reply via email to

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