about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-12-04 10:12:56 -0500
committerelioat <elioat@tilde.institute>2022-12-04 10:12:56 -0500
commitcc4b6f7c8a2b93632bd3dddd943bb3310a59d593 (patch)
tree4cfd893a8d20668691064b5fb12e3bb7e5982cec /src
parentee9e7a3e9f4c26f783186ea5f577bc025ec429f3 (diff)
downloaddecember-2022-cc4b6f7c8a2b93632bd3dddd943bb3310a59d593.tar.gz
working on a way to itterate over the data to access the data recursively
Diffstat (limited to 'src')
-rw-r--r--src/tmp.rkt12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tmp.rkt b/src/tmp.rkt
index 655c567..f63055d 100644
--- a/src/tmp.rkt
+++ b/src/tmp.rkt
@@ -53,7 +53,15 @@
 
 ;; NEXT STEPS -> https://stackoverflow.com/questions/13504302/racket-scheme-filtering
 
+(hash-ref test-data "stats") ; all stats
+(hash-ref (car (hash-ref test-data "stats")) 'base_stat) ; value for a given stat
+(hash-ref (hash-ref (car (hash-ref test-data "stats")) 'stat) 'name) ; name for a given stat
+
+
+(map
+ (lambda (x) (displayln "t")) ;; need a way to not use car, but just hit every item in the sequence
+ (hash-ref test-data "stats"))
+
+
 
-(displayln (hash-ref (car (hash-ref test-data "stats")) 'base_stat)) ;; just show the specific stat
-(displayln (car (hash-ref test-data "stats"))) ;; show tne entire hash table!