summaryrefslogtreecommitdiffstats
path: root/net/ricketyspace
diff options
context:
space:
mode:
Diffstat (limited to 'net/ricketyspace')
-rw-r--r--net/ricketyspace/sicp/two/twentythree.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ricketyspace/sicp/two/twentythree.scm b/net/ricketyspace/sicp/two/twentythree.scm
new file mode 100644
index 0000000..230e242
--- /dev/null
+++ b/net/ricketyspace/sicp/two/twentythree.scm
@@ -0,0 +1,8 @@
+;;;; License: CC0-1.0
+
+(define-module (net ricketyspace sicp two twentythree)
+ #:export (for-each-sicp))
+
+(define (for-each-sicp f l)
+ (cond ((null? l) #t)
+ (else (begin (f (car l)) (for-each-sicp f (cdr l))))))