compare symbols using name

This commit is contained in:
Pekka Laiho 2020-12-08 17:05:28 +07:00
parent 212c0780fd
commit a34d528d80

View File

@ -4,6 +4,7 @@ namespace MadLisp\Lib;
use MadLisp\Collection;
use MadLisp\CoreFunc;
use MadLisp\Env;
use MadLisp\Symbol;
class Compare implements ILib
{
@ -44,7 +45,9 @@ class Compare implements ILib
private function getValue($a)
{
if ($a instanceof Collection) {
if ($a instanceof Symbol) {
return $a->getName();
} elseif ($a instanceof Collection) {
return $a->getData();
}