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)]
Overview
image-variant and image-transform!.compose and o.map and the other subjects we are doing today.list (specific values), iota (values from
0 to n-1), and make-list (multiple copies of the same value)map to apply a function to each
element of a list. map is much like image-variant, except for lists rather than images.
(That is, both apply a function to each element in a collection
and return a newly computed collection. In one case, it's an image.
In the other, it's a list.)map can also take multiple lists, and applies the function to
corresponding elements of each list.