Created
May 29, 2021 11:49
-
-
Save briang/ee64829b2b7004f6d8dac37a1e0e6d1f to your computer and use it in GitHub Desktop.
searching a p-list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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