Macro (alist-val) to access the actual value of a key in an alist

This commit is contained in:
2025-02-10 18:10:06 +00:00
parent 5c6d444c2e
commit 3e6da6b0f4
2 changed files with 5 additions and 1 deletions

View File

@@ -83,3 +83,7 @@ arguments `LAMBDA-LIST' with body `BODY'."
sequentially"
`(lambda (x)
(->> x ,@forms)))
(defmacro alist-val (key alist)
"Helper macro for getting the value of KEY in ALIST."
`(cdr (assoc ,key ,alist)))

View File

@@ -22,7 +22,7 @@
(:export
:_ :--> :->>
:-> :fn
:while
:while :alist-val
:$))
(defpackage lib.functions