I have a hash table in Chicken Scheme the hash table has keys with values corresponding to those keys are hashes with corresponding values of hashes again. The keys of the "inner hashes" have corresponding values which are strings. (For Those familiar with, say, Ruby, setting the relevant portion of the hash might look like
the_hash[group_name][section_name][part_name] = some_text
or to read the string:
a_string = the_hash[group_name][section_name][part_name]
, for example.)
At the point where I read the string, I need to know what the group_name
, section_name
, and part_name
are and I need to be able to perform certain actions based on the values of each of the strings and the for-each
and map
features of Scheme do not seem to be sufficient because only one of the three key/sub-key strings seems available at any given moment. I do not know what patterns the respective strings might hold. A web search turned up no work able solution. At the same time, I am relatively new to Scheme and may not be as familiar as I should. Can Anyone point Me in the direction of a solution?