<eli_oat>
does anyone have examples for how to work with a deeply nested hash table?
<eli_oat>
I'm noodling if it'd be easier to handle json directly, rather than let it be converted into a hash table, because I've been banging my head against how best to access a hash table in a hash table in a hash table in a ...
skapata has joined #racket
ec has quit [Remote host closed the connection]
ec has joined #racket
badkins has quit [Remote host closed the connection]
<dzoe>
eli_oat: I would probably roll out some wrapper to access it based on "path" - like (define path '(some deep key)) -> (for/fold ((ht deep-hash-table)) ((key (in-list path)) #:break (not (hash? ht))) (hash-ref ht key))
<eli_oat>
dzoe oooh, thank you! I'll give it a go
<dzoe>
You're welcome ;-)
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
FreeFull has joined #racket
codingquark has quit [Quit: No Ping reply in 180 seconds.]
codingquark has joined #racket
<eli_oat>
dzoe I tried, and think I actually asked the wrong question earlier 😆
<eli_oat>
there are 2 functions, inspector1 and inspector2, 1 works more or less as I expect, 2 is supposed to test for if a value is a hash table, but it always seems to return false
sxn has joined #racket
sagax has quit [Read error: Connection reset by peer]
sxn has quit [Ping timeout: 256 seconds]
sxn has joined #racket
rekahsoft has joined #racket
sxn has quit [Ping timeout: 256 seconds]
sxn has joined #racket
sxn has quit [Ping timeout: 256 seconds]
badkins_ has joined #racket
badkins has quit [Remote host closed the connection]