Skip to content

Instantly share code, notes, and snippets.

@nicferrier
Created June 19, 2013 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicferrier/5814298 to your computer and use it in GitHub Desktop.
Save nicferrier/5814298 to your computer and use it in GitHub Desktop.

list data structures in emacs-lisp

lists

cover mapping separately

M-x package-install smartparens

`list’

`length’

`elt’

`cons’

`car’

`cdr’

`cadr’

association lists

`assoc’

`assq’

plists

`plist-get’

`plist-put’

enterdescription
M-C-leftmove to end of list
M-C-rightmove to start of list
C-h mmode information

list mapping

map

mapcar

mapc

mapconcat

loop

-map

–map

other “collection” data structures in emacs-lisp

vectors

hashtables

obarrys

strings

string properties

more on plists

`symbol-plist’

`setplist’

`defun*’

`destructuring-bind’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment