Questions tagged [alists]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
90 views

How to match the car of alist elements with a regexp?

I've spent a good amount of hours trying to solve this one but without success. I have an alist with strings (setq trees '(("pine" . "cones") ("oak" . "acorns") ...
Ajned's user avatar
  • 672
2 votes
2 answers
766 views

setf + alist-get but with "equal" instead of "eq"?

I got a suggestion to use setf to replace value in an alist: Replace element in a list / add in case of absence, with custom test/key functions The example was provided, but it doesn't work if key is ...
gavenkoa's user avatar
  • 3,362