Lessons
Scheme · Easy
Scheme · Easy. 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
Quasiquote, unquote and splicing in depth
Build lists, dotted pairs, vectors and code templates with quasiquote; insert values with unquote and spread lists with unquote-splicing.

Lesson 2
Macros with define-syntax and syntax-rules
Write pattern-based macros with syntax-rules, match repeated forms with ellipsis, use literals, recurse, and rely on hygiene to avoid name clashes.

Lesson 3
Continuations with call/cc
Escape from loops with call/cc and let/ec, resume a saved continuation, see how dynamic-wind runs exit code on jumps, and pass multiple values.

Lesson 4
Records with define-record-type
Define record types with SRFI-9, use constructors, predicates, accessors and modifiers, set a custom printer and make functional updates.

Lesson 5
Modules: define-module, exports and imports
Declare Guile modules, export and re-export names, import with #:select, renaming and #:prefix, and reach exported or private bindings with @ and @@.

Lesson 6
Bytevectors and binary ports
Store raw bytes in bytevectors, read and write integers with an endianness, and use bytevector, binary file and textual ports for I/O.

Lesson 7
Exceptions: raise, handlers and guard
Raise any value as an exception, handle it with with-exception-handler or guard, build structured exceptions with messages and irritants, and continue.

Lesson 8
Promises and lazy streams
Delay work with delay and force, build infinite lazy lists with a small macro, and use SRFI-41 streams for map, filter, take and self-referencing streams.

Lesson 9
Hash tables and association lists
Use Guile hash tables with defaults, counts, folds and removal, pick the right equality, count words, and update alists with acons and assq-set!.

Lesson 10
Parameter objects and dynamic binding
Create settings with make-parameter, rebind them for a dynamic extent with parameterize, validate with converters and redirect current-output-port.
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.