RosettaCodeData/Task/Associative-array-Iteration/TXR/associative-array-iteration...

7 lines
182 B
Plaintext

@(do (defvar *h* (make-hash nil nil nil))
(each ((k '(a b c))
(v '(1 2 3)))
(set [*h* k nil] v))
(dohash (k v *h*)
(format t "~a -> ~a\n" k v))))