Builtin function argument parsing

This commit is contained in:
2026-01-19 23:29:14 -08:00
parent c63b104bc6
commit 243a012d3e
11 changed files with 243 additions and 50 deletions

View File

@ -18,8 +18,9 @@ intptr_t list_length(LispVal *list) {
bool list_length_eq(LispVal *list, intptr_t size) {
assert(LISTP(list));
while (size-- && CONSP(list)) {
while (size && CONSP(list)) {
list = XCDR(list);
--size;
}
return size == 0 && NILP(list);
}