RU beehive logo ITEC dept promo banner
ITEC 380
2009fall
ibarland

homeinfolecturesexamshwsarchive

lect01c
Scheme intro: functions

  Review: uses prefix notation,
   exact rationals [compare scheme vs Java vs ...]
Let's write some functions:



I. define
(define a 2)
(define b 8)
(define c 42)
; quadratic expression

II. define a function
(define (root1 a b c)
  ...)

III. practice: string functions
blend : string, string -> string

IIIa: expected results
IIIb: write
IIIc: expected results w/ 'string=?'; expected results w/ check-expect

homeinfolecturesexamshwsarchive


©2009, Ian Barland, Radford University
Last modified 2009.Sep.07 (Mon)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme