Binding a name to a constant or function in racket.

Constants

(define x 3)
(define y (+ x 1))

Functions

(define (square x) (* x x))
 
(define (sum-of-squares x y)
	(+ (square x)
	   (square y)
	)
)

Local Definitions

Defining in a local space like Racket let

(define (multiples-of n ilist)
    (local
        [;; (is-mult? m) produces true if m is a multiple of n,
         ;; and false otherwise
         ;; is-mult?: Int -> Bool
         (define (is-mult? m)
            (zero? (remainder m n)))]
        (filter is-mult? ilist)))