Examples
All examples are in the examples/ directory.
Example |
Description |
|---|---|
Backtracking search via multi-shot continuations |
|
Scheme-style |
|
Exact discrete probability distributions via weighted multi-shot |
|
Swap DB/email/logging implementations |
|
Record effect results, replay without side effects |
|
Buffer writes, commit on success, rollback on failure |
|
Forward-mode (dual numbers) and reverse-mode (backpropagation) |
|
Mutable state (get/put) and traffic light controller |
|
Delimited continuations: deep = shift/reset, shallow = shift0/reset0 |