Functional Problem Solving (CSC 151 2014F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
New partners!
Candy! (one piece each, please)
Overview
Two minutes, two questions:
Important points
(tommy 'go-forward!)? No!(turtle-forward! tommy 23)repeat! commandMurkiness
turtle-new and turtle-clone.repeat! work?
(map proc (list 1 2 3)) means call (proc 1),
(proc 2), (proc 3) and then shove them into a new list.(repeat N proc val) means calls (proc val)
(proc val), (proc val), (proc val), (proc val) N times.
Returns nothing. Similar to (map proc (make-list N val)), but
without the list (also more efficient).(repeat 3 proc val) the same as (map (o proc proc proc) (list val))?
(proc val) three times.
The second does (proc (proc (proc (val)))).turtle-up! and turtle down? And what's the default?
(+ (square 5) (square 10) (square 2)).image-stroke! and image-select-ellipse!. Need to think
about explicit sequencing - order of steps matters.(context-set-brush! trish "2. Hardness 100" 20)