Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.39 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.39 KB

SICP in Haskell and Racket

This is my attempt at working through Structure and Interpretation of Computer Programs in Haskell and Racket, implementing each example and exercise that appears in the book. Racket is used mostly as a Scheme, the language used throughout the book.

I plan to skip over the "picture language" example and exercises (pages 172-192).

I recommend reading and working through the book yourself before looking at the implementations here, especially if you have never taken a class using SICP (which was the case for me).

The section, exercise, and example numbers are contained in the comments in the sources themselves, and the files are named roughly by what concepts/examples are covered by each file.

You should be able to grep for any number, e.g., grep -r 1.19 hs rkt and find which files contain a particular exercise or example.

How do I get set up?

All of the exercises can be run in their language's respective REPL.

For the Haskell implementations:

ghci Factorial.hs

For the Racket implementations:

racket -if factorial.rkt