Functional Problem Solving (CSC 151 2014F) : Reference
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] - [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)]
(position-new
col
row
)
col
,row
).
(position-col
pos
)
pos
.
(position-row
pos
)
(position?
value
)
value
is a position (or can
be interpreted as such).
(position-offset
position
hoff
voff
)
position
horizontally by hoff
and vertically
by voff
.
(position-distance
pos1
pos2
)
pos1
and
pos2
.
(position-interpolate
pos1
pos2
percent
)
percent
(expressed as a real number between 0 and 1) of the way from
pos1
to pos2
(random-positions
n
cols
rows
)
n
positions, each of which is
difficult to predict and each with a non-negative column less
than cols
and a non-negative row less
than rows
.