sicp

sicp sandbox.
git clone git://git.ricketyspace.net/sicp.git
Log | Files | Refs

commit 0096e0afff9c53c48be6686edfc83d80ecdeac1e
parent 5a9d30934588cb67206611a5d2dbc8dd36972bce
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat,  5 Jan 2019 14:03:54 -0500

net: Add (net ricketyspace sicp two twentythree).

Diffstat:
net/ricketyspace/sicp/two/twentythree.scm | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/net/ricketyspace/sicp/two/twentythree.scm 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))))))