1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-10 12:47:45 +03:00

Use symbol name while comparing mal-symbols

This commit is contained in:
Iqbal Ansari 2016-08-18 20:58:14 +05:30
parent 623c5d2fa8
commit 5cd6b623ab

View File

@ -36,7 +36,10 @@
(defun mal-value= (value1 value2)
(and (equal (mal-type value1) (mal-type value2))
(equal (mal-value value1) (mal-value value2))))
(if (mal-symbol-p value1)
(string= (symbol-name (mal-value value1))
(symbol-name (mal-value value2)))
(equal (mal-value value1) (mal-value value2)))))
(defun hash-mal-value (value)
(sxhash (mal-value value)))