;; The first three lines of this file were inserted by DrRacket. They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname demo) (read-case-sensitive #t) (teachpacks ((lib "docs.rkt" "teachpack" "htdp"))) (htdp-settings #(#t write repeating-decimal #f #t none #f ((lib "docs.rkt" "teachpack" "htdp")) #f))) (define (f s)(+ 2 s)) (f 5) (f 3) (f -1) (define (fact n) (if (zero? n) 1 (* n (fact (+ n -1))))) (fact 0) (fact 3) (define (const x) 5 ) (const 6) ; (define (newconst )5) - this doesn't work due to syntax error; fcn has to have ;at least one argument;