all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Datastructure for table
@ 2010-01-14 22:00 Johan Andersson
  0 siblings, 0 replies; 3+ messages in thread
From: Johan Andersson @ 2010-01-14 22:00 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

Hey,

I have an Org-table looking like this:
| person | car     | wife      |
| John     | Volvo | Susan |
| Peter    | BMW  | Greta   |
| Stefan  | Golf    | Althea  |

I want to parse this so that I get one object per row (execpt the
header, which defines the keys). So if I for example have the first
object, I want to be able to fetch the value of some column given the
header key. The table is dynamic and can have any number of columns
and the header names differ.

What kind of datastructure would fit for this? I can think of a few
that may work (Hash-table, Struct and Plist), but none that fit very
well.

Thanks!

[-- Attachment #2: Type: text/html, Size: 687 bytes --]

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

end of thread, other threads:[~2010-01-15 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1435.1263510168.18930.help-gnu-emacs@gnu.org>
2010-01-15  0:23 ` Datastructure for table Tim X
2010-01-15 16:45   ` Johan Andersson
2010-01-14 22:00 Johan Andersson

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.