From 28d92f8a32885afc0cc11967bbbbe813288fd505 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 30 Jun 2018 15:27:00 +0000 Subject: net: Add (net ricketyspace sicp two four). * net/ricketyspace/sicp/two/four.scm: New file. --- net/ricketyspace/sicp/two/four.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 net/ricketyspace/sicp/two/four.scm (limited to 'net') diff --git a/net/ricketyspace/sicp/two/four.scm b/net/ricketyspace/sicp/two/four.scm new file mode 100644 index 0000000..d00211a --- /dev/null +++ b/net/ricketyspace/sicp/two/four.scm @@ -0,0 +1,15 @@ +;;;; Under Creative Commons Attribution-ShareAlike 4.0 +;;;; International. See +;;;; . + +(define-module (net ricketyspace sicp two four) + #:export (sicp-cons sicp-car sicp-cdr)) + +(define (sicp-cons x y) + (lambda (m) (m x y))) + +(define (sicp-car z) + (z (lambda (p q) p))) + +(define (sicp-cdr z) + (z (lambda (p q) q))) -- cgit v1.2.3