Macro (alist-val) to access the actual value of a key in an alist
This commit is contained in:
@@ -83,3 +83,7 @@ arguments `LAMBDA-LIST' with body `BODY'."
|
|||||||
sequentially"
|
sequentially"
|
||||||
`(lambda (x)
|
`(lambda (x)
|
||||||
(->> x ,@forms)))
|
(->> x ,@forms)))
|
||||||
|
|
||||||
|
(defmacro alist-val (key alist)
|
||||||
|
"Helper macro for getting the value of KEY in ALIST."
|
||||||
|
`(cdr (assoc ,key ,alist)))
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
(:export
|
(:export
|
||||||
:_ :--> :->>
|
:_ :--> :->>
|
||||||
:-> :fn
|
:-> :fn
|
||||||
:while
|
:while :alist-val
|
||||||
:$))
|
:$))
|
||||||
|
|
||||||
(defpackage lib.functions
|
(defpackage lib.functions
|
||||||
|
|||||||
Reference in New Issue
Block a user