Eval keys of hash-map as well
authorIqbal Ansari <iqbalansari02@yahoo.com>
Sun, 21 Aug 2016 05:59:59 +0000 (11:29 +0530)
committerIqbal Ansari <iqbalansari02@yahoo.com>
Sat, 27 Aug 2016 12:43:33 +0000 (18:13 +0530)
common_lisp/step6_file.lisp

index ad5bf1f..8edcd90 100644 (file)
@@ -36,7 +36,7 @@
         (new-hash-table (make-hash-table :test 'types:mal-value=)))
     (loop
        for key being the hash-keys of hash-map-value
-       do (setf (gethash key new-hash-table)
+       do (setf (gethash (mal-eval key env) new-hash-table)
                 (mal-eval (gethash key hash-map-value) env)))
     (make-mal-hash-map new-hash-table)))