diff options
author | elioat <elioat@tilde.institute> | 2022-12-03 12:59:30 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2022-12-03 12:59:30 -0500 |
commit | 50bad18c9623793b4cb958e781af39878fbdc69e (patch) | |
tree | 5ea523e40b1b9e5f2e3698777cebf87e013c6844 | |
parent | bd058071de9c2845644984d620fef7b7017a09db (diff) | |
download | december-2022-50bad18c9623793b4cb958e781af39878fbdc69e.tar.gz |
thinking with type
-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... |