fukamachi / assoc-utils

Utilities for manipulating association lists.
25 stars 1 forks source link

Function for building alist #10

Open kilianmh opened 2 months ago

kilianmh commented 2 months ago

A function for generating an alist in the style of serapeum:dict might be nice. Then we could define an alist with minimal parentheses.

(alist :a 1
       :b 2
       :c 3)

Would you like to have this in assoc-utils? If yes, then name it just alist / al or you have another name in mind?

fukamachi commented 2 months ago

In the case of serapeum:dict, it's useful since Common Lisp doesn't have a syntax for defining a hash table. I'm not sure about association lists, but it's fine to have. Sometimes, making them using quasiquotes and unquotes would be tedious.