Munyoki Kilyungi anaandika: > Hi! Say I have a hashmap that has nested hashmaps > that I want to inspect. Is there a way to just > printing it out on my display in a > straight-forward way without having to loop inside > the key-value pairs? Printing a hashmap outputs > something like this: > > # FWIW, I've come up with something that looks like: --8<---------------cut here---------------start------------->8--- (use-modules (ice-9 pretty-print)) (define (print-hash-map h) (map (lambda (x) (newline) (display (car x)) (display ":\n") (map (lambda (x) (format #t "~a:\n" (car x)) (pretty-print (hash-map->list cons (cdr x))) (newline)) (hash-map->list cons (cdr x))) (newline)) h)) (print-hash-map (hash-map->list cons (dataset-csv-reader "rand.csv"))) --8<---------------cut here---------------end--------------->8--- I think the above is clanky as I already know the structure of my hashmap before-hand. -- (Life is like a pencil that will surely run out, but will leave the beautiful writing of life.) (D4F09EB110177E03C28E2FE1F5BBAE1E0392253F (hkp://keys.gnupg.net))