;; The first three lines of this file were inserted by DrScheme. They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname symbols) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) ;; Symbols 'A 'Hi 'HiThere! 'Yes 'No 'what?? '2%and&5 ;; no spaces allowed: ;'I have a space ;; functions can return symbols: (define (check-even x) (cond [(even? x) 'EvenNumber] [(odd? x) 'OddNumber] ) ) (check-even 4) (check-even 5) ;; Symbols equality: (symbol=? 'Yes 'No) (symbol=? 'Yes 'yes) (symbol=? 'Yes 'Yes)