Lecture overview -- Keyboard shortcut: 'u'  Previous page: More forms of lambda expressions in Scheme -- Keyboard shortcut: 'p'  Next page: Name binding constructs [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Introduction to Functional Programming in Scheme - slide 34 : 49

Function definition in Scheme

A function object can be bound to a name via define like any other kind of value.

But we often use a slightly different, equivalent syntax for function definitions, where the 'lambda' is implicitly specified

(define f (lambda (p1 p2) ...))
(define (f p1 p2) ...)

The latter function definition is syntactic sugar for the first

The two function definitions are identical