5.4 Scheme

The Scheme programming language was developed at the MIT AI Lab by Guy L. Steele and Gerald Jay Sussman between 1975 and 1980. Scheme predates Common Lisp and influenced its development.

5.4.1 An Interactive and Illustrative Session with Scheme

The following is an interactive session with Scheme:4

A set of 12 code lines in Scheme for an interactive session.
Description
Continuation of the code in Scheme for an interactive session, consisting of 19 lines.
Description

As shown in this session, the Scheme interpreter operates as a simple interactive read-eval-print loop (REPL; sometimes called an interactive top-level). Literals evaluate as themselves (lines 1–12). The atoms ...

Get Programming Languages: Concepts and Implementation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.