projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f53f1e
)
runtime/list: Fix append.
author
Matt Birkholz
<matt@birchwood-abbey.net>
Fri, 15 Feb 2019 23:53:18 +0000
(16:53 -0700)
committer
Matt Birkholz
<matt@birchwood-abbey.net>
Fri, 15 Feb 2019 23:53:18 +0000
(16:53 -0700)
src/runtime/list.scm
patch
|
blob
|
history
diff --git
a/src/runtime/list.scm
b/src/runtime/list.scm
index 384c5f13332b8209fea9a04e742209cc88987fd7..2a2f747ab787f16a2906a3d274e4c6c132ac1af3 100644
(file)
--- a/
src/runtime/list.scm
+++ b/
src/runtime/list.scm
@@
-562,9
+562,9
@@
USA.
(named-lambda (append self . lists)
self
(let recur ((lists lists))
- (if (
pair? lists)
; Recursion limited by number of args.
- (
%append-2 (car lists) (recur (cdr lists))
)
-
'(
))))
+ (if (
null? (cdr lists))
; Recursion limited by number of args.
+ (
car lists
)
+
(%append-2 (car lists) (recur (cdr lists))
))))
(lambda () '())
(lambda (l) l)
%append-2))