Skip to content

Instantly share code, notes, and snippets.

@briang
Created May 29, 2021 11:49
Show Gist options
  • Save briang/ee64829b2b7004f6d8dac37a1e0e6d1f to your computer and use it in GitHub Desktop.
Save briang/ee64829b2b7004f6d8dac37a1e0e6d1f to your computer and use it in GitHub Desktop.
searching a p-list
(setq plistlist '( (:number 1 :name "one")
(:number 2 :name "two") ))
(setq result (seq-find (lambda (elt)
(eq (plist-get elt :number) 2) )
plistlist) )
(message "%s" result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment