We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fb35ee commit a339686Copy full SHA for a339686
lisp/c/lists.c
@@ -334,7 +334,8 @@ register pointer argv[];
334
if (islist(target)) { /*ignore non-pair elements*/
335
if (rassoc==NIL) temp=ccar(target);
336
else temp=ccdr(target);
337
- if (key!=NIL) temp=call1(ctx,key,temp);
+ if (key==NIL) temp=ccar(target);
338
+ else temp=call1(ctx,key,target);
339
if (ifnottest!=NIL) compare=(call1(ctx,ifnottest,temp)==NIL);
340
else if (iftest!=NIL) compare=(call1(ctx,iftest,temp)!=NIL);
341
else if (testnot!=NIL) compare=(call2(ctx,testnot,item,temp)==NIL);
0 commit comments