From 50bad18c9623793b4cb958e781af39878fbdc69e Mon Sep 17 00:00:00 2001 From: elioat Date: Sat, 3 Dec 2022 12:59:30 -0500 Subject: thinking with type --- src/pokedex.rkt | 8 ++++++++ 1 file changed, 8 insertions(+) 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... -- cgit 1.4.1-2-gfad0