A lot of work

This commit is contained in:
2026-01-19 05:57:18 -08:00
parent c7af58f674
commit c63b104bc6
12 changed files with 217 additions and 13 deletions

View File

@ -21,7 +21,7 @@ bool list_length_eq(LispVal *list, intptr_t size) {
while (size-- && CONSP(list)) {
list = XCDR(list);
}
return size == 0;
return size == 0 && NILP(list);
}
DEFUN(cons, "cons", (LispVal * car, LispVal *cdr), "(car cdr)",