RosettaCodeData/Task/Associative-array-Iteration/LFE/associative-array-iteration-1.lfe
2016-12-05 23:44:36 +01:00

7 lines
190 B
Text

(let ((data '(#(key1 "foo") #(key2 "bar")))
(hash (: dict from_list data)))
(: dict fold
(lambda (key val accum)
(: io format '"~s: ~s~n" (list key val)))
0
hash))