Association lists are the most commonly used associative containers in elisp. This is just a list of cells with key values ββlike this ((key . value)) . You can use the assoc function to get the value corresponding to the key, and rassoc to get the key with the desired value.
Elisp comes with a built-in mapcar function that displays the map, but AFAIK is not a good fold tool. You can emulate it using any of the provided loops. However, the best solution is to use cl-lib and slip into CommonLisp ground. In particular, it supplies cl-mapcar and cl-reduce .
source share