Function: hypb:map-plist

hypb:map-plist is an autoloaded and byte-compiled function defined in hypb.el.

Signature

(hypb:map-plist FUNC PLIST)

Documentation

Apply FUNC of two args, key and value, to key-value pairs in PLIST.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
;;;###autoload
(defun hypb:map-plist (func plist)
  "Apply FUNC of two args, key and value, to key-value pairs in PLIST."
  (unless (hypb:function-p func)
      (error "(hypb:map-plist): Invalid 'func' arg: %s" func))
  (unless (hypb:plist-p plist)
      (error "(hypb:map-plist): Invalid 'plist' arg: %s" plist))
  (cl-loop for (k v) on plist by #'cddr
	   collect (funcall func k v) into result
	   finally return result))