Skip to main content
Version: Stable (v0.95.5)

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.

ProgressionWhat to tryPrerequisites
Work with inputs and branchesHello and FizzBuzzQuickstart and basic pattern matching. Console output needs IO.
Transform and model dataCollections and recursive recordsLists, functions, options, and records.
Organize a programImports and exportsFile execution and source aliases.
Keep everyday code conciseCommon Script PatternsOptions, maps, and unions.
Put a rule inside an appEmbedded pricingThe Embedded overview and Node.js.
Use a typed native providerFFI graphics: a rotating teapotAdvanced extension setup and the walkthrough's platform requirements.
Coordinate concurrent workParallel quicksortTasks and Concurrency; grant Threading, plus IO for output.
Inspect sharing risksTask-sharing samplesTyped 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.