We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e111e8b commit ca60481Copy full SHA for ca60481
chapter2/exercise2-23.rkt
@@ -0,0 +1,15 @@
1
+#lang racket
2
+(define (for-each proc items)
3
+ (let ((a (map proc items)))
4
+ (= 1 1)))
5
+
6
+(module+ test
7
+ (require rackunit)
8
9
+ (test-case "Test for for-each"
10
+ ;; 57
11
+ ;; 321
12
+ ;; 88
13
+ (check-equal? (with-output-to-string (lambda () (for-each (lambda (x) (display x) (newline)) (list 57 321 88)))) "57\n321\n88\n")
14
+ )
15
chapter2/exercise2-23.scm
0 commit comments