all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to populate a property list?
@ 2004-10-26 10:09 Hattuari
  2004-10-26 12:28 ` Thien-Thi Nguyen
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Hattuari @ 2004-10-26 10:09 UTC (permalink / raw)


Suppose I have a collection of key values pairs as follows:

char  c 
short s 
int   i 
long  l

I want to put them in a property list.  I can do this:

(setq type-map '(char c short s int i long l))

Which works for this short list.  I don't find it particularly expressive. 
I can try playing with the format:

(setq type-map 
      '(char c 
             short s 
             int i 
             long l))

That's heading nowhere fast.
I can try adding additional pairs like this:
(setq type-map (plist-put type-map 'float 'f))

That, however, seems excessively verbose. Is there a more concise means of
adding the members of a property list in pairwise fashion?
-- 
p->m == (*p).m == p[0].m

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-11-01 16:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26 10:09 How to populate a property list? Hattuari
2004-10-26 12:28 ` Thien-Thi Nguyen
2004-10-27 20:38   ` Hattuari
2004-10-31 14:39     ` Kai Grossjohann
2004-10-26 15:24 ` Kevin Rodgers
2004-10-30 12:05   ` Hattuari
2004-10-30 17:12     ` Thien-Thi Nguyen
2004-10-30 17:54       ` Hattuari
2004-10-30 20:17         ` Thien-Thi Nguyen
2004-10-31  8:32           ` Hattuari
2004-10-31  8:57             ` Thien-Thi Nguyen
2004-10-31 15:23             ` Hattuari
2004-11-01 16:44         ` Kevin Rodgers
2004-10-31 14:36 ` Kai Grossjohann

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.