Functional Problem Solving (CSC 151 2015F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric] [Remote Access]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2015F)] [Davis (2013F)] [Rebelsky (2015S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
New partners!
Overview
osectionComponents of algorithms
(define NAME VALUE) or
(define NAME EXPRESSION). In the definitions pane. Also in the
interactions pane, but those are less permanent.(define square (lambda (x) (* x x))))
Parameters appear after the lambda.
(define ave2 (lambda (x y) (* 1/2 (+ x y)))) (ave2 10 20) 15 (ave2 80 -50) 15 (define ave2 (lambda (x y) 15)) (ave2 100 5) 15
(define add2 (section + <> 2)) Also with o.
(define fun (o square increment)) - function that adds one and
then squares.image-variant does repetition - it applies a color transform to every
color/pixel in an image.
Still need to learn more.