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:
parent
623c5d2fa8
commit
5cd6b623ab
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user