mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Alternative implementation
This commit is contained in:
parent
a28b95f255
commit
a54c25ff78
@ -212,12 +212,11 @@
|
|||||||
; (cdrs (cdr unz)))
|
; (cdrs (cdr unz)))
|
||||||
; (apply proc cars) (apply map (cons proc cdrs))))))
|
; (apply proc cars) (apply map (cons proc cdrs))))))
|
||||||
|
|
||||||
(define (for-each proc lst)
|
(define (for-each proc lst)
|
||||||
(if (null? lst)
|
(if (not (null? lst))
|
||||||
lst
|
(begin
|
||||||
(begin
|
(proc (car lst))
|
||||||
(proc (car lst))
|
(for-each proc (cdr lst)))))
|
||||||
(for-each proc (cdr lst)))))
|
|
||||||
|
|
||||||
(define (list-tail x k)
|
(define (list-tail x k)
|
||||||
(if (zero? k)
|
(if (zero? k)
|
||||||
|
Loading…
Reference in New Issue
Block a user