CSC104H1 Lecture Notes - Lecture 3: Ellipse
Document Summary
; range, and mapping our own functions (require picturing-programs) ; defining a new function that can be mapped onto a list. ; mapping a function onto a list requires a function that accepts one argument. ; let"s define a new function oval" that takes a number and produces an image. ; producing a sequence of numbers using the function range". ; range : number number number list-of-numbers. ; (range start end change) produces the list of numbers from start" up to but not including end", ; counting up by the change" amount. (check-expect (range 12 34 5) (list 12 17 22 27 32)) (check-expect (range 1 7 2) (list 1 3 5)) ; notice it doesn"t include 7. ; creating lots of values by mapping a function onto a range of numbers.