summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.lisp4
-rw-r--r--print.lisp6
-rw-r--r--utils.asd1
3 files changed, 11 insertions, 0 deletions
diff --git a/package.lisp b/package.lisp
index ddf77ea..ebbe43b 100644
--- a/package.lisp
+++ b/package.lisp
@@ -1,3 +1,7 @@
+(defpackage #:print
+ (:use #:cl)
+ (:export #:table))
+
(defpackage #:queue
(:use #:cl)
(:export #:new
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))
diff --git a/utils.asd b/utils.asd
index f9bcc50..a810c67 100644
--- a/utils.asd
+++ b/utils.asd
@@ -3,4 +3,5 @@
:components
((:file "package")
(:file "queue")
+ (:file "print")
(:file "str")))