Lessons
Scheme · Introductory
Scheme · Introductory. Ten lessons. Open-book quizzes. Lesson 1 free.
10 lessons · The Host · Lesson 1 free
Pass all ten lessons for the certificate. Sample · Claim

Lesson 1 · On the house
Hello, Scheme: running Guile and the REPL
Run Scheme files with GNU Guile, try expressions at the REPL, write prefix calls, and print with display, write and newline.

Lesson 2
Numbers: exact, inexact and big
Use Scheme's numeric tower: exact integers of any size, exact fractions, inexact floats, and quotient, remainder, modulo, expt and rounding.

Lesson 3
Atoms, symbols and quote
Meet symbols, strings, characters and booleans, stop evaluation with quote, build templates with quasiquote, and compare with eq?, eqv? and equal?.

Lesson 4
define and lambda
Name values and procedures with define, write anonymous procedures with lambda, pass procedures as values, return closures, and take rest arguments.

Lesson 5
Conditionals: if, cond, case, and, or
Branch with if and cond, match constant values with case, combine tests with and and or, and remember that only #f counts as false.

Lesson 6
Pairs and lists: cons, car, cdr
Build pairs with cons, take them apart with car and cdr, see how lists are chains of pairs ending in '(), and use list, append, reverse and list-ref.

Lesson 7
Recursion and tail calls
Write recursive procedures with a base case and a smaller step, walk lists with car and cdr, and use accumulators so tail calls run in constant space.

Lesson 8
Local bindings: let, let*, letrec and named let
Bind local names with let and let*, write mutual recursion with letrec, define helpers inside procedures, loop with named let and keep state with set!.

Lesson 9
Higher-order procedures: map, filter, fold, apply
Transform lists with map, select with filter, combine with fold and reduce from SRFI-1, spread arguments with apply and use association lists.

Lesson 10
Strings, characters, begin and simple I/O
Slice and join strings, convert between strings, numbers and characters, sequence with begin, and read and write through string and file ports.
Sample certificate
Certificate of completion
Sign in to claim your certificate of completion.
Certificate
Finish all ten lessons, then sign in
Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.