searching a p-list

Home   »   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)

Leave a Reply

Your email address will not be published. Required fields are marked *