Function: ht-reject!

ht-reject! is a byte-compiled function defined in ht.el.

Signature

(ht-reject! FUNCTION TABLE)

Documentation

Delete entries from TABLE for which FUNCTION returns non-nil.

FUNCTION is called with two arguments, KEY and VALUE.

Aliases

ht-delete-if

Source Code

;; Defined in ~/.emacs.d/elpa/ht-20230703.558/ht.el
(defun ht-reject! (function table)
  "Delete entries from TABLE for which FUNCTION returns non-nil.

FUNCTION is called with two arguments, KEY and VALUE."
  (ht-each
   (lambda (key value)
     (when (funcall function key value)
       (remhash key table)))
   table)
  nil)