Skip to content

Commit

Permalink
Flattened directory structure
Browse files Browse the repository at this point in the history
All chapter examples and exercise solution files will now be in the
/sicp directory. The naming convention takes care of ordered listing
anyway. And loading file paths needs fewer keystrokes.
  • Loading branch information
lambdadi committed Apr 10, 2013
1 parent dc57728 commit 6c3f9fb
Show file tree
Hide file tree
Showing 59 changed files with 5 additions and 80 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
75 changes: 0 additions & 75 deletions chapter1/fizzbuzz.scm

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions fizzbuzz.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-*-Scheme-*-
;-*-Scheme-*-

; Fizzbuzz: For the numbers from 1 to 100,

Expand All @@ -14,8 +14,8 @@
; BEFORE the conditions, fizzbuzz is printed in ASCENDING order.
(define (fizzbuzz-a n)
(if (> n 1)
(fizzbuzz-a (- n 1))
(display "Done!"))
(fizzbuzz-a (- n 1))
(display "Done!"))

(if (= (modulo n 15) 0)
(display "fizzbuzz ")
Expand All @@ -40,8 +40,8 @@
(display "- ")
n)))
(if (> n 1)
(fizzbuzz-b (- n 1))
(display "Done!")))
(fizzbuzz-b (- n 1))
(display "Done!")))

; This version causes an error: "The object #t is not applicable."
; Note how the conditional is used... a direct translation of the
Expand Down

0 comments on commit 6c3f9fb

Please sign in to comment.