Defining Functions by Rules
l
Suppose we want to define a function
taking an arbitrary list as an argument.
l
It is sufficient to:
l
define the function
on the empty list, and
l
define the function
on a general non-empty list.
called the ÒbasisÓ
called the
Òinduction stepÓ or
ÒrecursionÓ