Functional Problem Solving (CSC 151 2016S) : Reference
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [Remote] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2016S)] [Davis (2013F)] [Rebelsky (2015F)] [Weinman (2014F)]
Misc: [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.