2013-04-11 01:07:29 -07:00
|
|
|
#lang racket
|
2013-10-27 22:24:23 +00:00
|
|
|
|
|
|
|
|
;; Racket can use Unicode in identifier names
|
|
|
|
|
(define √ sqrt)
|
|
|
|
|
(√ 256) ; -> 16
|
|
|
|
|
;; and in fact the standard language makes use of some of these
|
|
|
|
|
(λ(x) x) ; -> an identity function
|
|
|
|
|
|
|
|
|
|
;; The required binding:
|
2013-04-11 01:07:29 -07:00
|
|
|
(define Δ 1)
|
2013-10-27 22:24:23 +00:00
|
|
|
(set! Δ (add1 Δ))
|
|
|
|
|
(printf "Δ = ~s\n" Δ) ; prints "Δ = 2"
|