Function: map--pcase-map-elt

map--pcase-map-elt is a macro defined in map.el.gz.

This macro is obsolete since 30.1; use _ instead.

Signature

(map--pcase-map-elt KEY DEFAULT MAP)

Documentation

A macro to make MAP the last argument to map-elt.

This allows using default values for map-elt, which can't be done using pcase--flip.

KEY is the key sought in the map. DEFAULT is the default value.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/map.el.gz
(defmacro map--pcase-map-elt (key default map)
  "A macro to make MAP the last argument to `map-elt'.

This allows using default values for `map-elt', which can't be
done using `pcase--flip'.

KEY is the key sought in the map.  DEFAULT is the default value."
  ;; It's obsolete in Emacs>29, but `map.el' is distributed via GNU ELPA
  ;; for earlier Emacsen.
  (declare (obsolete _ "30.1"))
  `(map-elt ,map ,key ,default))