Samples
Practice one new idea at a time, then combine it with the skills you already have. Start with language-only examples; use host integrations when they match your project.
| Progression | What to try | Prerequisites |
|---|---|---|
| Work with inputs and branches | Hello and FizzBuzz | Quickstart and basic pattern matching. Console output needs IO in Next. |
| Transform and model data | Collections and recursive records | Lists, functions, options, and records. |
| Organize a program | Imports and exports | File execution and source aliases. |
| Keep everyday code concise | Common Script Patterns | Options, maps, and unions. |
| Put a rule inside an app | Embedded pricing | The Embedded overview and Node.js. |
| Use a typed native provider | FFI graphics: a rotating teapot | Advanced extension setup and the walkthrough's platform requirements. |
| Coordinate concurrent work | Parallel quicksort | Tasks and Concurrency; grant Threading, plus IO for output. |
| Inspect sharing risks | Task-sharing samples | Typed FFI and concurrent tasks. |
The website owns these guides; runnable repository samples live in FScript's samples directory. Follow each sample's setup and manifest rather than assuming it has the same capabilities as the first pure script.
If a sample feels like too big a jump, return to the matching Language Tour chapter or Advanced guide. The library reference is available whenever you need an exact operation.