Preface

Example 1. Example program code with syntax highlighting.

(define (fibonacci nth)
  ;; return the nth fibonacci number
  (if (<= 0 nth 1)
    1
    (+ (fibonacci (- nth 1)) 
       (fibonacci (- nth 2)))))

Interaction 1. Example interactions in the Lisp Listener.

cm> (list 1 2 3)
(1 2 3)
cm> (define 2pi (* 2 pi))

cm> 2pi
6.283185307179586
cm>