diff options
Diffstat (limited to 'src/pokedex.rkt')
-rw-r--r-- | src/pokedex.rkt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pokedex.rkt b/src/pokedex.rkt index 38d6ef0..7f03c23 100644 --- a/src/pokedex.rkt +++ b/src/pokedex.rkt @@ -49,6 +49,14 @@ (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) +; (define path '(some deep key)) -> + +; (for/fold ((ht deep-hash-table)) +; ((key (in-list path)) +; #:break +; (not (hash? ht))) +; (hash-ref ht key)) (hash-ref (inspector (dex-entry 5)) "types") ;; struggling to figure out how to access the nested hash tables stats and types... |