Function: mm-alist-to-plist

mm-alist-to-plist is a byte-compiled function defined in mm-decode.el.gz.

Signature

(mm-alist-to-plist ALIST)

Documentation

Convert association list ALIST into the equivalent property-list form.

The plist is returned. This converts from

((a . 1) (b . 2) (c . 3))

into

(a 1 b 2 c 3)

The original alist is not modified.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/mm-decode.el.gz
;;; The functions.

(defun mm-alist-to-plist (alist)
  "Convert association list ALIST into the equivalent property-list form.
The plist is returned.  This converts from

\((a . 1) (b . 2) (c . 3))

into

\(a 1 b 2 c 3)

The original alist is not modified."
  (let (plist)
    (while alist
      (let ((el (car alist)))
	(setq plist (cons (cdr el) (cons (car el) plist))))
      (setq alist (cdr alist)))
    (nreverse plist)))