mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 14:07:34 +02:00
Issue #378 - Return void instaed of null
This commit is contained in:
parent
6e607f4788
commit
ac330dfffc
1 changed files with 2 additions and 2 deletions
|
@ -875,12 +875,12 @@
|
|||
(cons (f (car lst1) (car lst2)) (Cyc-map-loop-2 f (cdr lst1) (cdr lst2)))))
|
||||
(define (Cyc-for-each-loop-1 f lst)
|
||||
(if (null? lst)
|
||||
'()
|
||||
(void)
|
||||
(begin (f (car lst))
|
||||
(Cyc-for-each-loop-1 f (cdr lst)))))
|
||||
(define (Cyc-for-each-loop-2 f lst1 lst2)
|
||||
(if (or (null? lst1) (null? lst2))
|
||||
'()
|
||||
(void)
|
||||
(begin (f (car lst1) (car lst2))
|
||||
(Cyc-for-each-loop-2 f (cdr lst1) (cdr lst2)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue