Skip to content

Commit

Permalink
Inline nrepl-dict predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhan0 authored and bbatsov committed Jun 11, 2024
1 parent 9db0cee commit abe972a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nrepl-dict.el
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@
(maphash (lambda (k v) (nrepl-dict-put dict k v)) hash)
dict))

(defun nrepl-dict-p (object)
(defsubst nrepl-dict-p (object)
"Return t if OBJECT is an nREPL dict."
(and (listp object)
(eq (car object) 'dict)))
(eq (car-safe object) 'dict))

(defun nrepl-dict-empty-p (dict)
(defsubst nrepl-dict-empty-p (dict)
"Return t if nREPL dict DICT is empty."
(null (cdr dict)))

Expand Down

0 comments on commit abe972a

Please sign in to comment.