mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 00:37:35 +02:00
Typecheck list parameter of (assoc)
This commit is contained in:
parent
55db975bc7
commit
9c41247c67
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ list assq(x,l) object x; list l;
|
||||||
return boolean_f;}
|
return boolean_f;}
|
||||||
|
|
||||||
list assoc(x,l) object x; list l;
|
list assoc(x,l) object x; list l;
|
||||||
{for (; !nullp(l); l = cdr(l))
|
{for (; !nullp(l) && type_of(l) == cons_tag; l = cdr(l))
|
||||||
{register list la = car(l); if (boolean_f != equalp(x,car(la))) return la;}
|
{register list la = car(l); if (boolean_f != equalp(x,car(la))) return la;}
|
||||||
return boolean_f;}
|
return boolean_f;}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue