Re: plist structure

[email protected]
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Heime <[email protected]> writes:

> Consider this property list
>
> '(:10pt 283.46456 :pt 28.34646 :mm 10 :in 0.3937 :ft 0.03281)
>
> It looks like a normal list to be, with elements next to each other.
>
> What determines whether a list is a normal list or a plist?  Is it 
> just the parsing routines that read the same list differently (e.g.
> with plist-get)?
>

In Emacs Lisp, the function ‘plistp’ determines whether a
list is a property list.

(plistp (list 'a 'b))
;;=> t
(plistp (list 'a 'b 'c))
;;=> nil
(plistp (list 'a 'b 'c 9))
;;=> t

See more in the Emacs Lisp reference manual: (info "(elisp) Property Lists")

-- 
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.