mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 04:30:19 +02:00
(append-map, append-map!): Rewrite as simple "concatenate map" forms,
for tail recursiveness.
This commit is contained in:
parent
bbd1b480f4
commit
8b981efda4
1 changed files with 2 additions and 2 deletions
|
@ -525,10 +525,10 @@
|
|||
(define map1 map)
|
||||
|
||||
(define (append-map f clist1 . rest)
|
||||
(apply append (apply map f clist1 rest)))
|
||||
(concatenate (apply map f clist1 rest)))
|
||||
|
||||
(define (append-map! f clist1 . rest)
|
||||
(apply append! (apply map f clist1 rest)))
|
||||
(concatenate! (apply map f clist1 rest)))
|
||||
|
||||
;; OPTIMIZE-ME: Re-use cons cells of list1
|
||||
(define map! map)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue