A Little More Scheme




CS152

Chris Pollett

Apr. 13, 2009

Outline

Introduction

Higher Order Functions

Closures

Message Passing in Scheme

Quiz

Which of the following would be evaluated in applicative order?

  1. (if (= 1 2) (display "hi") (display "you"))
  2. (+ (- 3 2) 9).
  3. (cond ((<= a 0) (display "not bigger than zero")) ((> a 0) (display "bigger than zero")))

Some Built-in Functions

Vectors

Symbols

Input

Output