Language Constructs

Language Constructs

Robbert Haarman

2010-12-11

Lambda

Lisp was originally based on lambda calculus, and Scheme retains the lambda operator. Basically, lambda defines an anonymous function. This is useful in a number of situations.

Variables

Variables in Scheme can be used to hold values of any type. One variable can hold values of different types during its lifetime. This part of the tutorial describes how variables are declared and used in Scheme.

Conditionals

Frequently, your program has to perform different actions depending on some value. The conditionals if and cond can be used to control this.

Valid XHTML 1.1! Valid CSS! Viewable with Any Browser