Python dictionary or map in elisp
What is the equivalent of a python dictionary like {'a':1, 'b':2} in elisp? And again, does elisp have any map-reduce api? Association lists are the most commonly used associative containers in elisp. It is just a list of key-value cons cells like this ((key . value)) . You can use the assoc function to get a value corresponding to a key and rassoc to get a key with the required value. Elisp comes with the built-in function mapcar which does map, but AFAIK there is no good fold facility. You could emulate it using any of the looping facilities provided. However, the better solution is to use