Functional Problem Solving (CSC 151 2015S) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric] - [Calendar]
Current: [Assignment] [EBoard am] [EBoard pm] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards am] [EBoards pm] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014F)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Book Office Hours] - [Issue Tracker (Course)]
Overview
cons can build things that aren't lists. You only get a list if
the second parameter is a list.We can use a list to represent a group of related information
If we know that representation, we can build procedures that construct things to match it or that deconstruct things to use them.
(image-sample image x-coordinates y-coordinates).(image-sample image shape xs ys).(map (lambda (i) (modulo (* i 11) (image-width image))) (iota 1000)) (map (lambda (i) (modulo (* i 13) (image-heightimage))) (iota 1000))