Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [data-structures]

The tag has no usage guidance.

1
vote
0answers
79 views

Directed Acyclic Graphs in Emacs Lisp

Emacs Lisp has support for lists (naturally), association lists, and property lists, vectors, and hash tables. Does it have support for directed acyclic graphs (DAGs)? I have not found a DAG API in ...
0
votes
1answer
102 views

Datomic for emacs/elisp

Does emacs/elisp have something equivalent or similar to Clojure's datomic? What I tried: google emacs datomic fyi by datomic I'm referring to this: https://en.wikipedia.org/wiki/Datomic
1
vote
1answer
54 views

Doubly-linked list package

Are there any good packages for Emacs that implement doubly-linked lists? I know I could make them myself, but I'd rather not re-invent the wheel.
1
vote
1answer
424 views

How do you get data by key from a json list?

I loaded some json data into a string and have elisp parsing it using the json-read-from-string function. Now I want to do is access data from the JSON by key. When I print out the data via message, ...
3
votes
1answer
84 views

ELPA archives directory contents: the data structure used?

I just stumbled across the archives directory of my .emacs.d/archives/ . Here's the beginning of .../archives/gnu/archive-contents (1 (ace-window . [(0 9 0) ((avy (0 2 0)))...
2
votes
1answer
66 views

Is there a syntax in Elisp for indexed getters and setters?

I want to define a struct for chores (defstruct chore name sector assignments) where the assignments slot is a vector with seven positions. I know that the above syntax will generate the getters ...
3
votes
1answer
171 views

What has replaced elib?

Looking for some data structures for elisp, I came across this. But then this warns me off -- without specifying exactly what replaces elib. So where do I get packages to do doubly linked lists?
1
vote
1answer
929 views

Interface with Sqlite

I want to manage simple personal databases, like mp3 collections. I am not aware of any updated lisp object database project working in Emacs (correct me if I am wrong). So I would turn to Sqlite,...
2
votes
1answer
84 views

Why aren't these two otherwise identical forms `equal`?

This requires the let-alist package available on the GNU ELPA (built-in in 25.1). I have the following macro: (defmacro sx-assoc-let (alist &rest body) (declare (indent 1) (debug t)) (...
5
votes
3answers
524 views

How to extract key from hash-table

I have a hash-table (named ztree-line-to-node-table) that stores the line-number and the corresponding absolute-file-name. The absolute-file-name is extracted using (gethash line ztree-line-to-node-...