summaryrefslogtreecommitdiff
path: root/print.lisp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2022-11-04 01:50:46 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2022-11-04 01:50:46 -0300
commit8d4413a1856b5e6d3906a3a078997e71e1de9b68 (patch)
tree5485c45259746d39bd70cc9c0b9d03a3cbe7ed50 /print.lisp
parent5b47a21cf818608883c875d0819bb40099d8e4f8 (diff)
downloadutils-8d4413a1856b5e6d3906a3a078997e71e1de9b68.tar.gz
utils-8d4413a1856b5e6d3906a3a078997e71e1de9b68.zip
Add hash table printer (not recursive)
Diffstat (limited to 'print.lisp')
-rw-r--r--print.lisp6
1 files changed, 6 insertions, 0 deletions
diff --git a/print.lisp b/print.lisp
new file mode 100644
index 0000000..ed02b1c
--- /dev/null
+++ b/print.lisp
@@ -0,0 +1,6 @@
+(in-package #:print)
+
+(defun table (tbl)
+ (maphash (lambda (k v)
+ (format t "Key: ~a, Value: ~a" k v))
+ tbl))