* dash.el (---truthy?): Simplify.

master
Basil L. Contovounesios 5 years ago
parent 994cda98ca
commit 565055e95c
No known key found for this signature in database
GPG Key ID: 205AB54A5D5D8CFF
  1. 5
      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?'."

Loading…
Cancel
Save