The little schemer

  1. Get the book
  2. Get a working copy of Scheme (The one I used is Racket Download & Install )
  3. If you use VIM you could use the setup shown in this post to complete the exercises.
  4.  Maybe you’ll struggle with the first exercises on what are you required to do. So just remember to initialise the function:
1
2
3
4
; atom? as defined in the Guidelines for the reader
(define atom?
(lambda (x)
(and (not (pair? x)) (not (null? x)))))
  1. Start with the first exercise:
1
(atom? (quote atom))

When the instructions ask if it’s a list you can use the function list? (see the pattern?)

1
(list? (quote (atom)))

Etcetera.

this is a link to the exercises code notes.

Enjoy.


** If you want to check what else I'm currently doing, be sure to follow me on twitter @rderik or subscribe to the newsletter. If you want to send me a direct message, you can send it to derik@rderik.com.
$