lizfcm/deprecated-cl/utils,table.lisp

12 lines
337 B
Common Lisp
Raw Normal View History

2023-09-13 11:54:12 -04:00
(in-package :lizfcm.utils)
(defmacro table ((&key headers domain-order domain-values) &body body)
`(cons
,headers
(mapcar (lambda (tuple)
(destructuring-bind ,domain-order tuple
(append tuple
(list
,@body))))
,domain-values)))