about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pokedex.rkt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pokedex.rkt b/src/pokedex.rkt
index 7f03c23..89fd7ea 100644
--- a/src/pokedex.rkt
+++ b/src/pokedex.rkt
@@ -46,7 +46,8 @@
     "display the contents of a hash table for human eyeballs"
     (hash-map h
         (lambda (k v)
-            (display (~a "key: " k ", value: " v "\n")))) ; QUESTION: is there a functional difference between hash-map and hash-for-each here?
+            (if (hash? v) (inspector v) ;; test if value is a hash table, if so recursively apply inspector (I don't think this is working right)
+            (display (~a "key: " k ", value: " v "\n"))))) ; QUESTION: is there a functional difference between hash-map and hash-for-each here?
     h)
 
 ; the sketch of how maybe to access these nested hash tables (this has become hillariously difficult to solve)