Worked examples

Complete programs built from what the track covered. Each is one file to save and run, with the output it prints.

Example

Uses

Countdown

while with decr! and an else: peer

Script entry point

@entry-point for the function that runs only as a program

Fibonacci

recursion, lru_cache with @demand, @let, named let, while

Point class

@dataclass on class, each, a property with a setter

Property accessors

@property, .setter, .deleter, del!