Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
;; Create an associative array (hash-table) whose keys are strings:
|
||||
(define table (hash-table 'string=?
|
||||
'("hello" . 0) '("world" . 22) '("!" . 999)))
|
||||
|
||||
;; Iterate over the table, passing the key and the value of each entry
|
||||
;; as arguments to a function:
|
||||
(hash-table-for-each
|
||||
table
|
||||
;; Create by "partial application" a function that accepts 2 arguments,
|
||||
;; the key and the value:
|
||||
(pa$ format #t "Key = ~a, Value = ~a\n"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue