summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index aa5fcde8..461b1664 100644
--- a/lib.c
+++ b/lib.c
@@ -8177,7 +8177,10 @@ val copy_cons(val cell)
val copy_alist(val list)
{
- return mapcar(func_n1(copy_cons), list);
+ list_collect_decl (out, ptail);
+ for (; !endp(list); list = cdr(list))
+ ptail = list_collect(ptail, copy_cons(car(list)));
+ return out;
}
val mapcar_listout(val fun, val seq)