i know that
member returns non-nil if the element is found in the list, but it only returns the tail of the list from element onwards. is there a way to return the full list it is a member of?
my case: i'm iterating over a list of plists, and i want to return the particular plist that contains what i search for (i want to access/use the other info the plist contains).
my solution so far looks like this:
(cl-dolist (child-list parent-list) (when (string= (plist-get child-list 'property) "value") (cl-return child-list)))
is there a more idiomatic way to go about this? the query is not so much