From 43f06890e2689af2ef54c4480fe5790692a24f65 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 11 Oct 2023 10:04:04 -0600 Subject: deprecate common lisp solutions and write c; it's too much effort to keep up with the requirements for an archive. --- deprecated-cl/utils,table.lisp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 deprecated-cl/utils,table.lisp (limited to 'deprecated-cl/utils,table.lisp') diff --git a/deprecated-cl/utils,table.lisp b/deprecated-cl/utils,table.lisp new file mode 100644 index 0000000..e96f37b --- /dev/null +++ b/deprecated-cl/utils,table.lisp @@ -0,0 +1,11 @@ +(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))) -- cgit v1.2.3-70-g09d2