In exercise 2.17, there is an error with the test on hexlets site, which should be reported to them.
7 lines
149 B
Scheme
7 lines
149 B
Scheme
#lang sicp
|
|
|
|
(define (my-for-each func list)
|
|
(if (null? list)
|
|
#t
|
|
(begin (func (car list))
|
|
(my-for-each func (cdr list)))))
|